options: koszt_vip: 100 # player's balance koszt_svip: 200 koszt_uvip: 300 koszt_mvip: 400 koszt_surf: 500 nazwa_grupy_vip: vip nazwa_grupy_svip: svip nazwa_grupy_mvip: mvip nazwa_grupy_uvip: uvip nazwa_grupy_surf: surf command /rangi []: executable by: player permission: rangi.kup trigger: set {_rangi} to chest inventory with 3 rows named "&eKupno rang" set slot (integers between 0 and 8, integers between 18 and 26) of {_rangi} to black stained glass pane named "&7" set slot 9 of {_rangi} to leather helmet named "&6VIP" with lore "&aKoszt: {@koszt_vip} $" set slot 11 of {_rangi} to iron helmet named "&eSVIP" with lore "&aKoszt: {@koszt_svip} $" set slot 13 of {_rangi} to gold helmet named "&bUVIP" with lore "&aKoszt: {@koszt_uvip} $" set slot 15 of {_rangi} to diamond helmet named "&5MVIP" with lore "&aKoszt: {@koszt_mvip} $" set slot 17 of {_rangi} to netherite helmet named "&aSURF" with lore "&aKoszt: {@koszt_surf} $" open {_rangi} to player on inventory click: if event-inventory is not player's inventory: if name of event-inventory = "&eKupno rang": cancel event if clicked slot is 9: if player's balance >= {@koszt_vip}: remove {@koszt_vip} from player's balance execute console command "lp user %player% parent add {@nazwa_grupy_vip}" if player's balance >= {@koszt_svip}: remove {@koszt_svip} from player's balance execute console command "lp user %player% parent add {@nazwa_grupy_svip}" if player's balance >= {@koszt_uvip}: remove {@koszt_uvip} from player's balance execute console command "lp user %player% parent add {@nazwa_grupy_mvip}" if player's balance >= {@koszt_mvip}: remove {@koszt_mvip} from player's balance/ execute console command "lp user %player% parent add {@nazwa_grupy_uvip}" if player's balance >= {@koszt_surf}: remove {@koszt_surf} from player's balance execute console command "lp user %player% parent add {@nazwa_grupy_surf}"