variables: {zmienna::%player%} = true command /zmien []: trigger: if player has permission "h.h": if arg 1 is not set: send "Poprawne uzycie /zmien on/off" if arg 1 is "on": set {zmienna::%player%} to true send "&2on" if arg 1 is "off": set {zmienna::%player%} to false send "&4off" else: send "brak" options: tag: &7[&4&lPro&f&lCase&7] wiad: &7* &c%player% &6otworzyl &4&lPro&f&lCase &6i otrzymal &c command /case [] [] []: trigger: if arg 1 is not set: if player have permission "case.daj": send "&cPoprawne uzycie: /&6case &c<&6all&c/&6give&c>" else: send "&4BLAD: &cNie posiadasz uprawnien! " if arg 1 is "give": if arg 2 is set: set {_i} to arg 2 parsed as integer if {_i} is integer: if {_i} is larger than 0: if player have permission "case.daj": set {_it} to "%{_i}% chest" set {_it} to {_it} parsed as item add {_it} named "{@tag}" with lore " &fblabla" to player's inventory send "&2Otrzymales/as &4&lPro&f&lCase &2:)" to player else: send "&4BLAD: &cNie posiadasz uprawnien! " else: send "&4BLAD: &cPodaj liczbe" if arg 1 is "all": if arg 2 is set: set {_i} to arg 2 parsed as integer if {_i} is integer: if {_i} is larger than 0: if player have permission "case.all": set {_it} to "%{_i}% chest" set {_it} to {_it} parsed as item loop all players: add {_it} named "{@tag}" with lore "&f blabla" to loop-player's inventory send "&2Otrzymales/as &4&lPro&f&lCase &2:)" to loop-players else: send "&4BLAD: &cNie posiadasz uprawnien! " else: send "&4BLAD: &cPodaj liczbe" on place a chest: set {lok.%player%} to location of player set block to air loop 2 times: play raw sound "random.break" at player with pitch 10 volume 10 spawn 10 of particle smoke offset by 0.5, 0.4, 0.5 at block set {los} to a random integer between 0 and 0 loop all players: if {zmienna::%loop-player%} is true: {los} is 0: drop 1 dirt broadcast "" broadcast " {@wiad} (dirt) !" broadcast ""