variables: {ps::chat::%player%} = false command /dzialka [] []: trigger: if arg 1 is "usun": execute player command "ps unclaim" if arg 1 is "wyrzuc": execute player command "ps remove %arg 2%" if arg 1 is "wyrzucwlasciciela": execute player command "ps removeowner %arg 2%" if arg 1 is "dodaj": execute player command "ps add %arg 2%" if arg 1 is "dodajwlasciciela": execute player command "ps addowner %arg 2%" if arg 1 is "kup": execute player command "ps buy" if arg 1 is "sprzedaj": execute player command "ps sell %arg 2%" if arg 1 is "liczba": execute player command "ps count %arg 2%" if arg 1 is "permisje": execute player command "ps flags" if arg 1 is "ukryj": execute player command "ps hide" if arg 1 is "pokaz": execute player command "ps unhide" if arg 1 is "teleportuj": execute player command "ps home" if arg 1 is "info": execute player command "ps info" if arg 1 is "polacz": execute player command "ps merge" if arg 1 is "nazwa": execute player command "ps name %arg 2%" if arg 1 is "ustawteleport": execute player command "ps sethome %arg 2%" if arg 1 is "granica": execute player command "ps view" if arg 1 is not set: set {_ps} to chest inventory with 6 rows named "&8» &5Dzialka" set slot 0,1,9, 7,8,17,52,53,44,45,46,36 of {_ps} to light blue stained glass pane named " " set slot 4 of {_ps} to lime dye named "&8» &aOKRESL GRACZA" with lore " &8» &7Ktory gracz ma byc dodawany itd.? %nl% &8» &7Obecnie wybrany: &6&6%{ps::wybrany::%player%}%" set slot 11 of {_ps} to diamond block named "&8» &bDODAJ DO DZIALKI" with lore "&8» &7Kliknij by dodac do dzialki &6%{ps::wybrany::%player%}%!" set slot 13 of {_ps} to emerald ore named "&8» &cUSUN Z DZIALKI" with lore "&8» &7Kliknij by usunac z dzialki &6%{ps::wybrany::%player%}%!" set slot 15 of {_ps} to netherite pickaxe named "&8» &bPOLACZ DZIALKE" with lore "&8» &7Kliknij by polaczyc najblizsza dzialke!" set slot 29 of {_ps} to gold ore named "&8» &bZOBACZ GRANICE DZIALKI" with lore "&8» &7Kliknij by zobaczec granice oraz srodek dzialki!" set slot 31 of {_ps} to golden pickaxe named "&8» &4&lUSUN DZIALKE" with lore "&8» &4&lKliknij, by usunac dzialke!" set slot 33 of {_ps} to gold block named "&8» &bUSTAW TELEPORT DLA DZIALKI" with lore "&8» &7Kliknij by ustawic twoja lokalizacje jako teleport dzialki!" open {_ps} for player on inventory click: event-inventory is not player's inventory if name of event-inventory is "&8» &5Dzialka": cancel event close player's inventory if clicked slot is 4: send "" send "&8» &eNapisz na chacie nick gracza!" send "" set {ps::chat::%player%} to true if clicked slot is 11: execute player command "dzialka dodaj %{ps::wybrany::%player%}%" if clicked slot is 13: execute player command "dzialka wyrzuc %{ps::wybrany::%player%}%" if clicked slot is 15: execute player command "dzialka polacz %{ps::wybrany::%player%}%" if clicked slot is 29: execute player command "dzialka wyrzuc %{ps::wybrany::%player%}%" if clicked slot is 31: execute player command "dzialka usun" if clicked slot is 33: execute player command "dzialka ustawteleport Dzialka" on chat: if {ps::chat::%player%} is true: cancel event set {ps::wybrany::%player%} to message send "&8» &aWybrano gracza &f%message%" execute player command "dzialka" set {ps::chat::%player%} to false on tab complete of "/dzialka": set tab completions for position 1 to "usun", "stworz", "wyrzuc", "dodaj", "kup", "sprzedaj", "liczba", "permisje", "ukryj", "pokaz", "teleportuj", "info", "polacz", "nazwa", "ustawteleport" and "granica"