This is a script I made for myself and it is untested, it will be called through a link on my Aternos server in a yaml file when somebody types "/rankup" in chat. When it is called, it will check the essentials "money" value of the player sending the request. If the player doesn't have enough money for the rankup, the value will return a message in chat. If they do have enough, the player will be promoted to a new rank and the price of the rankup will be subtracted from their balance.