variables: {drwal.%player%} = 0 {wojownik.%player%} = 0 {strzelec.%player%} = 0 command /klasy: permission: use.klasy permission message: &cBrak uprawnien trigger: open chest with 1 rows named "&a&lProfesje" to player format slot 0 of player with 1 of glass pane named "" to be unstealable format slot 1 of player with 1 of glass pane named "" to be unstealable format slot 2 of player with 1 of glass pane named "" to be unstealable format slot 3 of player with 1 of stone sword named "&aWojownik" to run [make player execute "wojownik"] format slot 4 of player with 1 of bow named "&aStrzelec" to run [make player execute "strzelec"] format slot 5 of player with 1 of iron axe named "&aDrwal" to run [make player execute "drwal"] format slot 6 of player with 1 of glass pane named "" to be unstealable format slot 7 of player with 1 of glass pane named "" to be unstealable format slot 8 of player with 1 of glass pane named "" to be unstealable command /wojownik: trigger: send "&aZostales klasa Wojownik!" execute console command "clear %player%" give 1 iron sword of unbreaking 2 and sharpness 2 named "&aMiecz Wojownika" to player give 1 ghast tear of unbreaking 5 named "&aObrona" to player give 1 iron helmet of unbreaking 2 and protection 2 named "&aHelm Wojownika" to player give 1 iron chestplate of unbreaking 2 and protection 2 named "&aZbroja Wojownika" to player give 1 iron leggings of unbreaking 2 and protection 2 named "&aNogawice Wojownika" to player give 1 iron boots of unbreaking 2 and protection 2 named "&aButy Wojownika" to player set {drwal.%player%} to 0 set {wojownik.%player%} to 1 set {strzelec.%player%} to 0 on rightclick with ghast tear: if name of player's tool is "&aObrona": set {czasobrona} to difference between {opoznienieobrona.%player%} and now if {czasobrona} is less than 30 seconds: send "&aJeszcze nie mozesz uzyc Obrona" else: apply resistance 2 to the player for 5 seconds set {opoznienieobrona.%player%} to now stop on respawn: if {wojownik.%player%} is 1: give 1 iron sword of unbreaking 2 and sharpness 2 named "&aMiecz Wojownika" to player give 1 ghast tear of unbreaking 5 named "&aObrona" to player give 1 iron helmet of unbreaking 2 and protection 2 named "&aHelm Wojownika" to player give 1 iron chestplate of unbreaking 2 and protection 2 named "&aZbroja Wojownika" to player give 1 iron leggings of unbreaking 2 and protection 2 named "&aNogawice Wojownika" to player give 1 iron boots of unbreaking 2 and protection 2 named "&aButy Wojownika" to player command /strzelec: trigger: send "&aZostales klasa Strzelec!" execute console command "clear %player%" give 1 bow of unbreaking 5 and power 3 named "&aLuk Strzelca" to player give 1 book of unbreaking 10 named "&aRzut Strzal" to player give 32 arrow to player give 1 leather helmet of unbreaking 2 and protection 2 named "&aCzapka Strzelca" to player give 1 leather chestplate of unbreaking 2 and protection 2 named "&aKurtka Strzelca" to player give 1 leather leggings of unbreaking 2 and protection 2 named "&aSpodnie Strzelca" to player give 1 leather boots of unbreaking 2 and protection 2 named "&aButy Strzelca" to player set {drwal.%player%} to 0 set {wojownik.%player%} to 0 set {strzelec.%player%} to 1 on rightclick with book: if name of player's tool is "&aRzut Strzal": set {czasstrzaly} to difference between {opoznieniestrzaly.%player%} and now if {czasstrzaly} is less than 30 seconds: send "&aNie mozesz jeszcze uzyc Rzut Strzal!" else: give 32 arrow to player set {opoznieniestrzaly.%player%} to now stop on respawn: if {strzelec.%player%} is 1: give 1 bow of unbreaking 5 and power 3 named "&aLuk Strzelca" to player give 1 book of unbreaking 10 named "&aRzut Strzal" to player give 32 arrow to player give 1 leather helmet of unbreaking 2 and protection 2 named "&aCzapka Strzelca" to player give 1 leather chestplate of unbreaking 2 and protection 2 named "&aKurtka Strzelca" to player give 1 leather leggings of unbreaking 2 and protection 2 named "&aSpodnie Strzelca" to player give 1 leather boots of unbreaking 2 and protection 2 named "&aButy Strzelca" to player command /drwal: trigger: send "&aZostales klasa Drwal!" execute console command "clear %player%" give 1 iron axe of unbreaking 3 and sharpness 2 named "&aTopor Drwala" to player give 1 leather helmet of unbreaking 5 and protection 3 named "&aCzapka Drwala" to player give 1 iron chestplate of unbreaking 5 and protection 3 named "&aZbroja Drwala" to player give 1 iron leggings of unbreaking 5 and protection 3 named "&aNogawice Drwala" to player give 1 leather boots of unbreaking 5 and protection 3 named "&aButy Drwala" to player set {drwal.%player%} to 1 set {wojownik.%player%} to 0 set {strzelec.%player%} to 0 on respawn: if {drwal.%player%} is 1: give 1 iron axe of unbreaking 3 and sharpness 2 named "&aTopor Drwala" to player give 1 leather helmet of unbreaking 5 and protection 3 named "&aCzapka Drwala" to player give 1 iron chestplate of unbreaking 5 and protection 3 named "&aZbroja Drwala" to player give 1 iron leggings of unbreaking 5 and protection 3 named "&aNogawice Drwala" to player give 1 leather boots of unbreaking 5 and protection 3 named "&aButy Drwala" to player