on right click on player: if name of clicked player is "Magazynier": open chest with 3 rows named "&8&lMagazynier" to player set {i.%player%} to 0 wait 1 tick loop 27 times: set player's current inventory's slot {i.%player%} to stained glass pane:7 add 1 to {i.%player%} set {i.%player%} to 0 wait 1 tick loop 9 times: set player's current inventory's slot {i.%player%} to stained glass pane:15 add 1 to {i.%player%} set {i.%player%} to 18 wait 1 tick loop 9 times: set player's current inventory's slot {i.%player%} to stained glass pane:15 add 1 to {i.%player%} set player's current inventory's slot 9 to stained glass pane:15 set player's current inventory's slot 17 to stained glass pane:15 format slot 12 of player with wool:5 named "&a&lDolacz do pracy" to run "dm %player%" format slot 14 of player with wool:14 named "&c&lOpusc prace" to run "om %player%" on inventory click: if inventory name of player's current inventory is "&8&lMagazynier": cancel event command /dm []: trigger: if sender is console: if arg 1 has permission "magazynier": send "&cNalezysz juz do tej pracy!" to arg 1 stop else: execute console command "pex user %arg 1% add magazynier" send "&aDolaczyles do pracy magazyniera" to arg 1 stop command /om []: trigger: if sender is console: if arg 1 has permission "magazynier": execute console command "pex user %arg 1% remove magazynier" send "&cOpusciles prace magazyniera!" to arg 1 stop else: send "&cNie nalezysz do tej pracy!" to arg 1 stop every 1 second: loop all players: if loop-player's x-location is 439: if loop-player's y-location is 74: if loop-player's z-location is -995: if loop-player has permission "magazynier": if {odebral.%loop-player%} isn't set: give loop-player grass named "&6&lPaczka" send "&aOdebrales paczke, zanies paczke do magazynu!" to loop-player set {odebral.%loop-player%} to true if {odebral.%loop-player%} is false: give loop-player grass named "&6&lPaczka" send "&aOdebrales paczke, zanies paczke do magazynu!" to loop-player set {odebral.%loop-player%} to true if loop-player's x-location is 412: if loop-player's y-location is 63: if loop-player's z-location is -991: if loop-player has permission "magazynier": if {odebral.%loop-player%} is true: remove grass named "&6&lPaczka" from loop-player's inventory send "&aDostarczyles paczke i dostales &2100&a$" to loop-player execute console command "eco give %loop-player% 100" set {odebral.%loop-player%} to false