on first join: set {monety::%player%} to 0 on mine stone: chance of 15%: add 1 to {monety::%player%} send "&8&l» &6Wykopales 1 Monete! Gratulacje!" command /monety []: trigger: send "&8&l» &6Twoj stan konta: &c%{monety::%player%}%" command /sklep []: trigger: if arg 1 is not set: new Inventory "&8&l» &6&lSKLEP"; "&8&l» &6&lSKLEP".Inventory.setRow{2}; "&8&l» &6&lSKLEP".Inventory.setItem{1, 1 diamond helmet of protection 4 and unbreaking 3 named "&8&l» &7Helm 4/3" with lore "&8&l» &6Koszt: &c100 Monet"}; "&8&l» &6&lSKLEP".Inventory.setCommand{1, "sklep 1"}; "&8&l» &6&lSKLEP".Inventory.setExecutor{1, "player"}; "&8&l» &6&lSKLEP".Inventory.setItem{2, 1 diamond chestplate of protection 4 and unbreaking 3 named "&8&l» &7Klata 4/3" with lore "&8&l» &6Koszt: &c100 Monet"}; "&8&l» &6&lSKLEP".Inventory.setCommand{2, "sklep 2"}; "&8&l» &6&lSKLEP".Inventory.setExecutor{2, "player"}; "&8&l» &6&lSKLEP".Inventory.setItem{3, 1 diamond leggings of protection 4 and unbreaking 3 named "&8&l» &7Spodnie 4/3" with lore "&8&l» &6Koszt: &c100 Monet"}; "&8&l» &6&lSKLEP".Inventory.setCommand{3, "sklep 3"}; "&8&l» &6&lSKLEP".Inventory.setExecutor{3, "player"}; "&8&l» &6&lSKLEP".Inventory.setItem{4, 1 diamond boots of protection 4 and unbreaking 3 named "&8&l» &7Buty 4/3" with lore "&8&l» &6Koszt: &c100 Monet"}; "&8&l» &6&lSKLEP".Inventory.setCommand{4, "sklep 4"}; "&8&l» &6&lSKLEP".Inventory.setExecutor{4, "player"}; "&8&l» &6&lSKLEP".Inventory.setItem{5, 1 diamond pickaxe of efficiency 5 and unbreaking 3 and fortune 3 named "&8&l» &7Kilof 5/3/3" with lore "&8&l» &6Koszt: &c100 Monet"}; "&8&l» &6&lSKLEP".Inventory.setCommand{5, "sklep 5"}; "&8&l» &6&lSKLEP".Inventory.setExecutor{5, "player"}; "&8&l» &6&lSKLEP".Inventory.setItem{6, 1 diamond pickaxe of efficiency 6 and unbreaking 3 and fortune 3 named "&8&l» &7Kilof 6/3/3" with lore "&8&l» &6Koszt: &c500 Monet"}; "&8&l» &6&lSKLEP".Inventory.setCommand{6, "sklep 6"}; "&8&l» &6&lSKLEP".Inventory.setExecutor{6, "player"}; "&8&l» &6&lSKLEP".Inventory.setItem{7, 1 diamond sword of sharpness 5 and fire aspect 2 named "&8&l» &7Miecz 5/2" with lore "&8&l» &6Koszt: &c100 Monet"}; "&8&l» &6&lSKLEP".Inventory.setCommand{7, "sklep 7"}; "&8&l» &6&lSKLEP".Inventory.setExecutor{7, "player"}; "&8&l» &6&lSKLEP".Inventory.setItem{8, 1 diamond sword of sharpness 6 and fire aspect 3 named "&8&l» &7Miecz 6/3" with lore "&8&l» &6Koszt: &c500 Monet"}; "&8&l» &6&lSKLEP".Inventory.setCommand{8, "sklep 8"}; "&8&l» &6&lSKLEP".Inventory.setExecutor{8, "player"}; "&8&l» &6&lSKLEP".Inventory.display{player}; stop if arg 1 is "1": if {monety::%player%} is bigger than 99: remove 100 from {monety::%player%} give 1 diamond helmet of protection 4 and unbreaking 3 to player send "&8&l» &aPomyslnie kupiles przedmiot!" stop else: send "&8&l» &cNie posiadasz tylu monet!" stop if arg 1 is "2": if {monety::%player%} is bigger than 99: remove 100 from {monety::%player%} give 1 diamond chestplate of protection 4 and unbreaking 3 to player send "&8&l» &aPomyslnie kupiles przedmiot!" stop else: send "&8&l» &cNie posiadasz tylu monet!" stop if arg 1 is "3": if {monety::%player%} is bigger than 99: remove 100 from {monety::%player%} give 1 diamond leggings of protection 4 and unbreaking 3 to player send "&8&l» &aPomyslnie kupiles przedmiot!" stop else: send "&8&l» &cNie posiadasz tylu monet!" stop if arg 1 is "4": if {monety::%player%} is bigger than 99: remove 100 from {monety::%player%} give 1 diamond boots of protection 4 and unbreaking 3 to player send "&8&l» &aPomyslnie kupiles przedmiot!" stop else: send "&8&l» &cNie posiadasz tylu monet!" stop if arg 1 is "5": if {monety::%player%} is bigger than 99: remove 100 from {monety::%player%} give 1 diamond pickaxe of efficiency 5 and unbreaking 3 and fortune 3 to player send "&8&l» &aPomyslnie kupiles przedmiot!" stop else: send "&8&l» &cNie posiadasz tylu monet!" stop if arg 1 is "6": if {monety::%player%} is bigger than 499: remove 500 from {monety::%player%} give 1 diamond pickaxe of efficiency 6 and unbreaking 3 and fortune 3 to player send "&8&l» &aPomyslnie kupiles przedmiot!" stop else: send "&8&l» &cNie posiadasz tylu monet!" stop if arg 1 is "7": if {monety::%player%} is bigger than 99: remove 100 from {monety::%player%} give 1 diamond sword of sharpness 5 and fire aspect 2 to player send "&8&l» &aPomyslnie kupiles przedmiot!" stop else: send "&8&l» &cNie posiadasz tylu monet!" stop if arg 1 is "8": if {monety::%player%} is bigger than 499: remove 500 from {monety::%player%} give 1 diamond sword of sharpness 6 and fire aspect 3 to player send "&8&l» &aPomyslnie kupiles przedmiot!" stop else: send "&8&l» &cNie posiadasz tylu monet!" stop