on join: if {coins::%player%} is set: stop set {coins::%player%} to 0 stop command /sklep []: aliases: shop permission: alienshop.sklep permission message: &a&lAlien&2&lCraft &8-> &4Brak uprawnien &8| &a(alienshop.sklep)&4! trigger: open chest with 3 rows named "&a&lAlien&2&lShop" to player wait 1 tick set slot 0 of current inventory of player to white concrete named "&6&lAlienek" set slot 1 of current inventory of player to red concrete named "&6&lK&e&li&6&ln&e&lg" set slot 6 of current inventory of player to gray shulker box named "&6&lBox &7&lMedium" set slot 7 of current inventory of player to cyan shulker box named "&6&lBox &b&lPremium" set slot 26 of current inventory of player to paper named "&4&lJak kupic &6Coinsy?" 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-> &7Nie Posiadasz 500 coinsow! &7Posiadasz: &2%{coins::%player%}% &7coinsow" stop remove 500 from {coins::%player%} add 10000 to player's balance execute console command "azrank %player% Alienek 30 d" send "&a&lAlien&2&lCraft &8-> &aZakupiles range &6&lAlienek&a! Gratulujemy!" broadcast " " broadcast "&f%player% &azakupil range &6&lAlienek&a! Gratulujemy!" broadcast "&aTez chcesz cos zakupic? Wpisz /sklep!" broadcast " " 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 180 d" send "&a&lAlien&2&lCraft &8-> &aZakupiles range &6&lK&e&li&6&ln&e&lg&a! Gratulujemy!" broadcast " " broadcast "&f%player% &azakupil range &6&lK&e&li&6&ln&e&lg&a! Gratulujemy!" broadcast "&aTez chcesz cos zakupic? Wpisz /sklep!" broadcast " " stop stop command /coins [] [] []: permission: alienshop.admin permission message: &a&lAlien&2&lCraft &8-> &4Brak uprawnien &8| &a(alienshop.admin)&4! trigger: if arg 1 isn't "pomoc" or "dodaj": execute player command "coins pomoc" stop if arg 1 is "pomoc": send " " send "&a&lAlien&2&lCraft &8-> &cDostepne komendy:" send "&a&lAlien&2&lCraft &8-> &c/coins dodaj " send " " stop if arg 1 is "dodaj": if arg 2 isn't set: send "&a&lAlien&2&lCraft &8-> &cPodaj nick gracza!" stop set {_player} to arg 2 parsed as offlineplayer if {coins::%{_player}%} isn't set: send "&a&lAlien&2&lCraft &8-> &cPodany gracz nie istnieje!" stop if arg 3 isn't set: send "&a&lAlien&2&lCraft &8-> &cPodaj ilosc!" stop set {_amount} to arg 3 parsed as integer if {_amount} isn't integer: send "&a&lAlien&2&lCraft &8-> &cIlosc musi byc liczba!" stop add {_amount} to {coins::%{_player}%} send "&a&lAlien&2&lCraft &8-> &cDodales &4%{_player}% &4%{_amount}% &ccoinsow!" stop stop