on first join: set {ilosckoxow::%player%} to 0 set {iloscrefow::%player%} to 0 set {iloscperel::%player%} to 0 command /schowek []: trigger: if arg 1 is not set: new Inventory "&8» &9&lSCHOWEK"; "&8» &9&lSCHOWEK".Inventory.setRow{1}; "&8» &9&lSCHOWEK".Inventory.setItem{3, golden apple:1 named "&5&lKOXY" with lore "&8» &6Posiadasz: %{ilosckoxow::%player%}%"}; "&8» &9&lSCHOWEK".Inventory.setCommand{3, "schowek koxy"}; "&8» &9&lSCHOWEK".Inventory.setExecutor{3, "player"}; "&8» &9&lSCHOWEK".Inventory.setItem{5, golden apple:0 named "&5&lREFY" with lore "&8» &6Posiadasz: %{iloscrefow::%player%}%"}; "&8» &9&lSCHOWEK".Inventory.setCommand{5, "schowek refy"}; "&8» &9&lSCHOWEK".Inventory.setExecutor{5, "player"}; "&8» &9&lSCHOWEK".Inventory.setItem{7, ender pearl named "&5&lPERLY" with lore "&8» &6Posiadasz: %{iloscperel::%player%}%"}; "&8» &9&lSCHOWEK".Inventory.setCommand{7, "schowek perly"}; "&8» &9&lSCHOWEK".Inventory.setExecutor{7, "player"}; "&8» &9&lSCHOWEK".Inventory.display{player}; stop if arg 1 is "koxy": if {ilosckoxow::%player%} > 0: give {ilosckoxow::%player%} of golden apple:1 to player set {ilosckoxow::%player%} to 0 send "&a&lTWOJE&f&lIP&7&l.PL &8• &cOtrzymales swoje koxy!" stop send "&a&lTWOJE&f&lIP&7&l.PL &8• &cNie masz koxow w schowku!" if arg 1 is "refy": if {iloscrefow::%player%} > 0: give {iloscrefow::%player%} of golden apple:0 to player set {iloscrefow::%player%} to 0 send "&a&lTWOJE&f&lIP&7&l.PL &8• &cOtrzymales swoje refy!" stop send "&a&lTWOJE&f&lIP&7&l.PL &8• &cNie masz refow w schowku!" if arg 1 is "perly": if {iloscperel::%player%} > 0: give {iloscperel::%player%} of ender pearl to player set {iloscperel::%player%} to 0 send "&a&lTWOJE&f&lIP&7&l.PL &8• &cOtrzymales swoje perly!" stop send "&a&lTWOJE&f&lIP&7&l.PL &8• &cNie masz perel w schowku!"