on rightclick on ender chest:     if player's tool is tripwire hook named "&d&lKlucz Ruletki":         remove 1 tripwire hook named "&d&lKlucz Ruletki" from player         send "&6Losowanie"         wait 3 second         send "&c3"         wait 2 second         send "&c2"         wait 1 second         send "&c1"           chance of 1%:                 give 1 Red Stained Glass Pane named "&4Czerwony" to player         chance of 5%:                 give 1 Green Stained Glass Pane named "&aZielony" to player         chance of 10%:                 give 1 Blue Stained Glass Pane named "&1Niebieski" to player         chance of 15%:                 give 1 Yellow Stained Glass Pane named "&6Zolty" to player         chance of 20%:                 give 1 Black Stained Glass Pane named "&0Czarny" to player