command /sklep: trigger: if yaml value "tokeny" from file "zmienne/gracze/%UUID of player%.yml" is not set: set yaml value "tokeny" from file "zmienne/gracze/%UUID of player%.yml" to 0 set {_tokeny} to yaml value "tokeny" from file "zmienne/gracze/%UUID of player%" open chest with 1 row named "&cSklep" to player wait 5 tick format slot 0 of player with light gray glass named "&4&lVip : koszt 5 tokenow" with lore "VIP" to close then run "kupvipa %player" format slot 0 of player with light gray glass named "&4&lTokeny : %{_tokeny}%" with lore "Ilosc tokenow" to run "" command /kupvipa []: permission : skript.vipkup trigger: set {_tokeny} to yaml value "tokeny" from file "zmienne/gracze/%UUID of player%.yml" if {_tokeny} is bigger or equal to 5: execute console command "pex user %arg 1% group add vip" send "Gracz %player% kupil vipa" set {_tokeny} to {_tokeny} - 1 else: send "Nie masz wystarczajaco tokenow" to arg 1