command /NazwijPrzedmiot []: trigger: if arg 1 is not set: open chest with 1 rows named "&cDarkSite Nazywanie Itemu" to player format slot 4 of player with 1 of Name tag named "&aNazywanie Przedmiotu" with lore "&8» &aKliknij aby nazwac przedmiot||||&8» &aGracz 4 bloki emeraldow||&8» &eVIP &aFREE||||&8» &aPo kliknieciu wpisz na chacie nazwe (z kolorami)" to close then run [execute player command "NazwijPrzedmiot nazywanie"] format slot 0 of player with 1 of Magenta glass to close format slot 1 of player with 1 of Magenta glass to close format slot 2 of player with 1 of Magenta glass to close format slot 3 of player with 1 of Magenta glass to close format slot 5 of player with 1 of Magenta glass to close format slot 6 of player with 1 of Magenta glass to close format slot 7 of player with 1 of Magenta glass to close format slot 8 of player with 1 of Magenta glass to close if arg 1 is not "nazywanie": execute player command "NazwijPrzedmiot" if arg 1 is "nazywanie": if player has permission "ItemName_VIP": set {chatname.%player%} to true send "&8» &7Napisz nazwe przedmiotu na &achacie&7, jezeli jednak nie chcesz wpisz &aanuluj&8!" else: if player has 4 emerald block: remove 4 emerald block from player set {chatname.%player%} to true send "&8» &7Napisz nazwe przedmiotu na &achacie&7, jezeli jednak nie chcesz wpisz &aanuluj&8!" else: send "&8» &7Nie posiadasz 4x blokow emeraldow&8!" on chat: if {chatname.%player%} is true: cancel event if message contains "anuluj" or "stop": set {chatname.%player%} to false send "&8» &7Anulowanie nazywania przedmiotu!" else: if message contains "&eVoucher na VIPa : set {chatname.%player%} to false send "&8» &7Anulowanie nazywania przedmiotu!" send "&8» &7Ta nazwa jest zablokowana!" else: set {nameess.%player%} to "%message%" set the name of player's tool to coloured {nameess.%player%} set {chatname.%player%} to false send "&8» &7Przedmiot zostal nazwany!" variables: {chatname.%player%} = false