function chat(t: text, tt: text, w: world, p: player): broadcast "%{_t}% %{_p}%: &f%{_tt}%" to {_w} variables: prefix.%player% ="&6" on chat: chat({prefix.%player%},message, player's world, player) cancel event options: #Zmien prefixy prefix1:&c[ADMIN] prefix2:&a[VIP] prefix3:&e[SWAGER] prefix4:&d[KOBIETA] command /tag []: trigger: if player has permission "tag": open chest with 3 rows named " &9&lZmien tag!" to player wait 2 tick set {_} to 0 loop 27 times: format slot {_} of player with 1 of black glass named "&a " to be unstealable add 1 to {_} format slot 10 of player with 1 of rose red named "{@prefix1} %player%: &fElo" with lore "||&eKliknij, aby zmienic!" to run "zmientag %player% {@prefix1}" format slot 12 of player with 1 of cactus green named "{@prefix2} %player%: &fElo" with lore "||&eKliknij, aby zmienic!" to run "zmientag %player% {@prefix2}" format slot 14 of player with 1 of dandelion yellow named "{@prefix3} %player%: &fElo" with lore "||&eKliknij, aby zmienic!" to run "zmientag %player% {@prefix3}" format slot 16 of player with 1 of pink dye named "{@prefix4} %player%: &fElo" with lore "||&eKliknij, aby zmienic!" to run "zmientag %player% {@prefix4}" command /zmientag [] []: trigger: if executor is console: close arg-1's inventory send "&aZmieniono tag na&7: %arg-2%" set {prefix.%arg-1%} to "%arg-2%" else: send "&cNie!"