command /panel []: permission: panel.gracz trigger: if player has permission "panel.gracz": set {panel::%player%} to "%arg%" set {_panel} to chest inventory with 1 rows named "&cPanel Gracza %arg%" set slot (integers between 0 and 8) of {_panel} to gray stained glass pane named "&7" set slot 4 of {_panel} to red wool named "&cZbanuj Gracza" set slot 3 of {_panel} to lime wool named "&aStrolluj Gracza" set slot 5 of {_panel} to diamond sword named "&4Zabij Gracza" open {_panel} to player on inventory click: if event-inventory is not player's inventory: if name of event-inventory is "&cPanel Gracza %{panel::%player%}%": cancel event if clicked slot is 4: execute command "ban %{panel::%player%}%" send "&c%player% Zbanował gracza %{panel::%player%}%" to console and all ops if clicked slot is 3: execute command "effect give %{panel::%player%}% levitation 1 20" send "&c%player% strollował gracza %{panel::%player%}%" to console and all ops if clicked slot is 5: execute command "kill %{panel::%player%}%" send "&c%player% zabił gracza %{panel::%player%}%" to console and all ops on right click on player: if player is op: if player has permission "panel.gracz": set {panel::%player%} to "%target of player%" set {_panel} to chest inventory with 1 rows named "&cPanel Gracza %{panel::%player%}%" set slot (integers between 0 and 8) of {_panel} to gray stained glass pane named "&7" set slot 4 of {_panel} to red wool named "&cZbanuj Gracza" set slot 3 of {_panel} to lime wool named "&aStrolluj Gracza" set slot 5 of {_panel} to diamond sword named "&4Zabij Gracza" open {_panel} to player