variables: {zl::%player%} = 0 command /zl: trigger: send "&7Posiadasz aktualnie &2%{zl::%player%}% zł " command /Rsklep []: trigger: if arg-1 is "kupvip": if player's groups contains "twoja_ranga_VIP": send "&cJuż zakupiłeś rangę VIP!" to player stop if {zl::%player%} is less than 10.00: send "" to player send "&c&lBŁAD: &4Nie posiadasz wystarczajaco pieniedzy !" to player send "" to player else: execute console command "pex user %player% group set Vip" remove 10.00 from {zl::%player%} send "" to player send "&8» &cZakupiles Rangę &8[&6VIP&8] &7!" to player send "&8» &7Z konta odjeto &610.00 &7zł" to player send "" to player stop open chest with 3 rows named "&6&lSKLEP RANG" to player set player's current inventory's slot 1 to paper named "&8[&6VIP&8]" with lore "&7Koszt &210.00 zł" set player's current inventory's slot 11 to paper named "&8[&6VIP+&8]" with lore "&7Koszt &220.00 zł" set player's current inventory's slot 7 to paper named "&8[&bMV&6IP&8]" with lore "&7Koszt &230.00 zł" set player's current inventory's slot 15 to paper named "&8[&bMV&6IP&4+&8]" with lore "&7Koszt &240.00 zł" set player's current inventory's slot 4 to paper named "&8[&3S&4P&6O&8N&5S&1O&2R&8]" with lore "&7Koszt &250.00 zł" set player's current inventory's slot 22 to gold ingot named "&7 Stan konta &2%{zl::%player%}% zł" stop on inventory click: if inventory name of current inventory of player is not "&6&lSKLEP RANG": stop cancel event