on join: if {coins::%player%} is set: stop set {coins::%player%} to 0 stop command /sklep []: aliases: shop trigger: open chest with 3 rows named "&8- &a&lAlien&2&lShop &8-" to player wait 1 tick set slot 0 of current inventory of player to grass block named "&6&lAlienek" with lore "&8-> &cDzialania rangi - wkrotce!" set slot 1 of current inventory of player to diamond block named "&6&lK&e&li&6&ln&e&lg" with lore "&8-> &cDzialania rangi - wkrotce! &eRanga jest tylko 3 dni na miesiac! &cSpiesz sie!" set slot 6 of current inventory of player to gray shulker box named "&6&lBox &7&lMedium" with lore "&8-> &cJuz wkrotce!" set slot 7 of current inventory of player to cyan shulker box named "&6&lBox &b&lPremium" with lore "&8-> &cJuz wkrotce!" set slot 25 of current inventory of player to piece of paper named "&eSprawdz &6Coinsy&e!" with lore "&8-> &aKliknij aby sprawdzic!" format slot 26 of player with 2 of piece of paper named "&4&lJak kupic &6Coinsy&4&l?" with lore "&8-> &3Kliknij aby sie dowiedziec!" to close then run [make player execute command "/waluta"] stop on inventory click: if name of current inventory of player isn't "&a&lAlien&2&lShop": stop cancel event if clicked slot is 0: if {coins::%player%} < 500: send "&a&lAlien&2&lCraft &8-> &cNie Posiadasz &2500 &6Coinsow! &2Posiadasz: &a%{coins::%player%}% &6Coinsow!" stop remove 500 from {coins::%player%} add 10000 to player's balance execute console command "azrank %player% Alienek 30d" send " " send "&a&lAlien&2&lCraft &8-> &aUsluga &6Alienek &azostala aktywowana!" send " " broadcast "&8-------------------------------------------------------------------" broadcast " " broadcast "&a&lAlien&2&lCraft &8-> &e%player% &2zakupil range &6&lAlienek&2! Gratulujemy!" broadcast "&2Tez chcesz cos zakupic? Wpisz &6/sklep&2!" broadcast " " broadcast "&8-------------------------------------------------------------------" stop if clicked slot is 1: if {coins::%player%} < 1000: send "&a&lAlien&2&lCraft &8-> &7Nie Posiadasz 1000 coinsow! &7Posiadasz: &2%{coins::%player%}% &7coinsow" stop remove 1000 from {coins::%player%} add 50000 to player's balance execute console command "azrank %player% King 180d" send "&a&lAlien&2&lCraft &8-> &aUsluga &6&lK&e&li&6&ln&e&lg&a &azostala aktywowana!" broadcast "&8-------------------------------------------------------------------" broadcast " " broadcast "&a&lAlien&2&lCraft &8-> &e%player% &2zakupil range &6&lK&e&li&6&ln&e&lg&2! Gratulujemy!" broadcast "&2Tez chcesz cos zakupic? Wpisz &6/sklep&2!" broadcast " " broadcast "&8-------------------------------------------------------------------" stop if clicked slot is 25: remove 0 from {coins::%player%} send "&8-------------------------------------------------------------------" send " " send "&a&lAlien&2&lCraft &8-> &7Posiadasz: &2%{coins::%player%}% &7coinsow!" send "&aJezeli chcesz dokupic walute, wejdz na nasza strone!" send " " send "&8-------------------------------------------------------------------" stop stop