Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #The rank a player needs to be to have access to the b rankup
- A:
- #Options for players who are rank A
- options:
- #Should we allow A ranked players to reset their rank?
- allow_reset: false
- #How much should we charge them to reset their rank? set to 0 for no cost
- reset_cost: 0
- #We can list any commands here that we want to perform if a rank reset is successful
- #We must specify the command to change the players rank here or they will not change ranks
- reset_commands:
- #We can use ezbroadcast to send a raw broadcast message to all players
- - ezbroadcast %player% reset their rank to Guest!
- #We can use ezmsg to send a raw private message to the player who reset
- - ezmsg You will need to start over!!
- #Here we specify the command we use to reset the players rank
- - pex user %player% group set Guest
- #We can also run any other command, lets clear the players inventory too
- - clearinventory %player%
- #Now we are at the actual rankup settings when an A ranked player tries to rankup
- #This is the rankup settings for a rankup from A to B
- B:
- #Is this rankup active? If this is false, players will not have access to rankup
- active: true
- #Should players confirm to rankup if they have enough money
- confirm_to_rankup: true
- #How much does it cost to rankup from A to B
- cost: 1000.0
- #We can list messages here to send to the player if they do not have enough money to rank up
- requirement_message:
- - Your current rank is %rankfrom%
- - You need $%cost% to rank up to %rankto%
- - Your balance is $%balance%
- #Here is the most important part of the rankup. We need to make sure we put the command for our permissions plugin to set the
- #players rank to the new permissions group. I made this manual to allow more flexibility with rankups and solve a ton of problems
- #with hooking into each permissions plugin as vault sometimes fails with changing users groups depending on the permissions plugin
- rankup_commands:
- #lets tell everyone online the player ranked up!
- - ezbroadcast %player% ranked up to %rankto%!
- #lets send the player a private message
- - ezmsg Congrats on your rankup!
- #and another
- - ezmsg Here are some tools!
- #we can run any command, lets give them a kit for ranking up
- - kit tools %player%
- #last but not least, lets make sure to add them to the new rank
- - pex user %player% group add %rankto%
- #and also remove the old rank...
- - pex user %player% group remove %rankfrom%
Advertisement
Advertisement
Advertisement
RAW Paste Data
Copied
Advertisement