Jump to content

Need help with rankup command.


Skray

Recommended Posts

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)

Edited by Skray
My message vanished
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...