variables: {coins.%player%} = 0 command /run [] []: permission: run.command trigger: if arg 1 is set: if arg 2 is set: execute player command "%arg 2%" command /sklep []: trigger: if argument 1 is not set: open chest with 4 rows named "&a&lSKLEP" to player wait 1 tick format slot 0 of player with 1 of diamond named "&8» &bDiament" with lore "&6Cena&7: &2250 &6Ilosc&7: &21" to run [make player execute "/sklepitem kupdiament"] format slot 27 of player with 1 of diamond named "&8» &bDiament" with lore "&6Cena&7: &2100 &6Ilosc&7: &21" to run [make player execute "/sklepitem sprzedajdiament"] format slot 1 of player with 1 of emerald named "&8» &bEmerald" with lore "&6Cena&7: &2350 &6Ilosc&7: &21" to run [make player execute "/sklepitem kupemerald"] format slot 28 of player with 1 of emerald named "&8» &bEmerald" with lore "&6Cena&7: &2120 &6Ilosc&7: &21" to run [make player execute "/sklepitem sprzedajemerald"] command /sklepitem []: trigger: if arg 1 is "kupdiament": if {coins.%player%} is less than 250: send "&7Nie Posiadasz 250 coinsow! &aPosiadasz: %{coins.%player%}% coinsow" stop if {coins.%player%} is equal to 250: remove 250 from {coins.%player%} give 1 diamond to player send "&bZakupiles 1 Diamenty" stop if {coins.%player%} is more than 250: remove 250 from {coins.%player%} give 1 diamond to player send "&bZakupiles 1 Diamenty" stop if arg 1 is "sprzedajdiament": if player have 1 diamond: add 100 to {coins.%player%} remove 1 diamond from player send "&aSprzedales 1 diamenty za 100 coinsow" send "&aAktualnie posiadasz %{coins.%player%}% coinsow!" stop else: send "&cMusisz posiadac 1 diamenty w ekwipunku!" stop if arg 1 is "kupemerald": if {coins.%player%} is less than 350: send "&7Nie Posiadasz 350 coinsow! &aPosiadasz: %{coins.%player%}% coinsow" stop if {coins.%player%} is equal to 350: remove 350 from {coins.%player%} give 1 emerald to player send "&bZakupiles 1 Emeraldy" stop if {coins.%player%} is more than 350: remove 350 from {coins.%player%} give 1 emerald to player send "&bZakupiles 1 Emeraldy" stop if arg 1 is "sprzedajemerald": if player have 1 emerald: add 120 to {coins.%player%} remove 1 emerald from player send "&aSprzedales 1 emelrady za 120 coinsow" send "&aAktualnie posiadasz %{coins.%player%}% coinsow!" stop else: send "&cMusisz posiadac 1 emerlady w ekwipunku!" stop command /coins: trigger: send "&6Aktualnie posiadasz &2%{coins.%player%}% &6coinsow" command /money: trigger: send "&6Aktualnie posiadasz &2%{coins.%player%}% &6coinsow" command /balance: trigger: send "&6Aktualnie posiadasz &2%{coins.%player%}% &6coinsow" command /kasa: trigger: send "&6Aktualnie posiadasz &2%{coins.%player%}% &6coinsow" command /monety: trigger: send "&6Aktualnie posiadasz &2%{coins.%player%}% &6coinsow" command /hajs: trigger: send "&6Aktualnie posiadasz &2%{coins.%player%}% &6coinsow" command /hajsy: trigger: send "&6Aktualnie posiadasz &2%{coins.%player%}% &6coinsow" command /pieniadze: trigger: send "&6Aktualnie posiadasz &2%{coins.%player%}% &6coinsow" send "&6Aktualnie posiadasz &2%{coins.%player%}% &6coinsow"