command /test [<text>]:
trigger:
open chest with 1 rows named "&a&lPOTWIERDZENIE ZAKUPU" to player
wait 1 tick
format slot 0 of player with 1 stained_glass_pane:15 named "&f&lPusto" to close
format slot 1 of player with 1 stained_glass_pane:15 named "&f&lPusto" to close
format slot 2 of player with 1 stained_glass_pane:15 named "&f&lPusto" to close
format slot 3 of player with 1 stained_glass_pane:5 named "&a&lPotwierdzam" to close then run [execute player command "/test1"]
format slot 4 of player with 1 stained_glass_pane:15 named "&f&lPusto" to close
format slot 5 of player with 1 stained_glass_pane:14 named "&c&lAnuluj" to close
format slot 6 of player with 1 stained_glass_pane:15 named "&f&lPusto" to close
format slot 7 of player with 1 stained_glass_pane:15 named "&f&lPusto" to close
format slot 8 of player with 1 stained_glass_pane:15 named "&f&lPusto" to close
command /test1 [<text>]:
trigger:
if player's balance is equal to or bigger than 750000:
execute console command "eco take %player% 750000"
execute console command "/setrank %player% Vip 2592000"
broadcast "&7» Gracz &a%player% &7zakupił range &a&lVIP &7na 30dni za &emonety!"
broadcast "&7» Jeżeli także chcesz kupić range jak &a%player% &7to wpisz komende /rsklep lub wpadnij na naszą strone: &aWWW.TWÓJSKLEP.PL"
else:
send "&cNie masz środków w portfelu, aby zakupić usługę." to player