variables: {schowek.perly.%player%} = 0 {schowek.koxy.%player%} = 0 on load: set {koxmax} to 8 set {perlamax} to 12 every 5 second: loop all players: set {perla} to number of all ender pearl in loop-player's inventory set {kox} to number of all enchanted golden apple in loop-player's inventory if {perla} is more than {perlamax}: remove ({perla}-{perlamax}) of ender pearl from loop-player's inventory add ({perla}-{perlamax}) to {schowek.perly.%loop-player%} send "&8&l[&6&lSchowek&8&l] &e&lMaksymalnie mozesz miec przy sobie %{perlamax}% perel! %({perla}-{perlamax})% zostalo przekazanych do schowka. Aby je z tamtad wyjac wpisz /schowek" to loop-player if {kox} is more than {koxmax}: remove ({kox}-{koxmax}) of enchanted golden apple from loop-player's inventory add ({kox}-{koxmax}) to {schowek.koxy.%loop-player%} send "&8&l[&6&lSchowek&8&l] &e&lMaksymalnie mozesz miec przy sobie %{koxmax}% koxow! %({kox}-{koxmax})% zostalo przekazanych do schowka. Aby je z tamtad wyjac wpisz /schowek" to loop-player command /schowek [] []: trigger: if arg-1 is "koxy": if arg-2 is set: if {schowek.koxy.%player%}+1 > arg-2: loop arg 2 times: give enchanted golden apple to player's inventory remove 1 from {schowek.koxy.%player%} send "&8&l[&6&lSchowek&8&l] &e&lWyplaciles %arg 2% koxow" stop else: send "&8&l[&6&lSchowek&8&l] &e&lNie masz tyle koxow w schowku, posiadasz ich %{schowek.koxy.%player%}%." else: send "&8&l[&6&lSchowek&8&l] &e&lNie podales ilosci koxow jaka chcesz wyplacic" if arg-1 is "perly": if arg-2 is set: if {schowek.perly.%player%}+1 > arg-2: loop arg 2 times: give ender pearl to player's inventory remove 1 from {schowek.perly.%player%} send "&8&l[&6&lSchowek&8&l] &e&lWyplaciles %arg 2% perel" stop else: send "&8&l[&6&lSchowek&8&l] &e&lNie masz tyle perel w schowku, posiadasz ich %{schowek.koxy.%player%}%." else: send "&8&l[&6&lSchowek&8&l] &e&lNie podales ilosci perel jaka chcesz wyplacic" if arg-1 is not set: send "&e&l------------( &6&lSchowek &e&l)------------" send "&6&lKoxy: &f&l%{schowek.koxy.%player%}%" send "&5&lPerly: &f&l%{schowek.perly.%player%}%" send "&e&l------------( &6&lSchowek &e&l)------------" send " " send "&6&lKomenda: &e/schowek koxy/perly (ilosc)"