Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /Ranks:
- trigger:
- open virtual chest inventory with size 3 named "Ranks" to player
- set {_item} to coal named "&8Coal rank" with lore "&6$1000" without any nbt
- format gui slot 10 of player with {_item} to close:
- if player's balance is greater than or equal to 1000:
- execute console command "pex user %player% group set coal"
- remove 1000 from player's balance
- send "&aYou now have access to coal mine!"
- else:
- message "&cYou don't have enough money!"
- set {_item} to iron ingot named "&fIron rank" with lore "&6$1500" without any nbt
- format gui slot 12 of player with {_item} to close:
- if player's balance is greater than or equal to 1500:
- execute console command "pex user %player% group set iron"
- remove 1500 from player's balance
- send "&aYou now have access to iron mine!"
- else:
- message "&cYou don't have enough money!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement