Command /rankup
trigger:
if player's {group} is stone
if player's inventory contains 5 stone named "Compressed Stone"
execute command /pex user %player% group set iron
delete 5 stone named "Compressed Stone" from player's inventory
else:
send "You can't afford that"
else:
if player's {group} is iron
if player's inventory contains 5 iron block named "Compressed Iron"
delete 5 iron block named "Compressed Iron" from player's inventory
execute command /pet user %player% group set diamond
else:
send "You can't afford that"
else:
send "You are on the max level"
(For the ranks I am using Permission Ex)
(Other plugins I use: Skript, Skbee, Tuske, Vault)