Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- pr: &8&l(&3&l!&8&l) #Prefix for when something goes right
- pw: &8&l(&4&l!&8&l) #prefix for when something goes wrong (ex. not enough money)
- #[LETTER] rank = upgrade to [LETTER] ex: b rank = a -> b
- b rank: 100
- c rank: 100
- d rank: 100
- e rank: 100
- f rank: 100
- g rank: 100
- h rank: 100
- i rank: 100
- j rank: 100
- k rank: 100
- l rank: 100
- m rank: 100
- n rank: 100
- o rank: 100
- p rank: 100
- q rank: 100
- r rank: 100
- s rank: 100
- t rank: 100
- u rank: 100
- v rank: 100
- w rank: 100
- x rank: 100
- y rank: 100
- z rank: 100
- command /rankup:
- trigger:
- if {rank.%player%} is not set:
- if player's balance >= {@b rank}:
- send "{@pr} &7You have ranked up to &bB&7."
- set {rank.%player%} to "B"
- remove {@b rank} from player's balance
- stop
- else:
- send "{@pw} &7You don't have enough money to do this!"
- send "{@pw} &7You need &4$&c{@b rank}&7 to do this!"
- stop
- if {rank.%player%} is "b":
- if player's balance >= {@c rank}:
- send "{@pr} &7You have ranked up to &bC&7."
- set {rank.%player%} to "C"
- remove {@c rank} from player's balance
- stop
- else:
- send "{@pw} &7You don't have enough money to do this!"
- send "{@pw} &7You need &4$&c{@c rank}&7 to do this!"
- stop
- if {rank.%player%} is "c":
- if player's balance >= {@d rank}:
- send "{@pr} &7You have ranked up to &bD&7."
- set {rank.%player%} to "D"
- remove {@d rank} from player's balance
- stop
- else:
- send "{@pw} &7You don't have enough money to do this!"
- send "{@pw} &7You need &4$&c{@d rank}&7 to do this!"
- stop
- if {rank.%player%} is "d":
- if player's balance >= {@e rank}:
- send "{@pr} &7You have ranked up to &bE&7."
- set {rank.%player%} to "E"
- remove {@e rank} from player's balance
- stop
- else:
- send "{@pw} &7You don't have enough money to do this!"
- send "{@pw} &7You need &4$&c{@e rank}&7 to do this!"
- stop
- if {rank.%player%} is "e":
- if player's balance >= {@f rank}:
- send "{@pr} &7You have ranked up to &bF&7."
- set {rank.%player%} to "F"
- remove {@f rank} from player's balance
- stop
- else:
- send "{@pw} &7You don't have enough money to do this!"
- send "{@pw} &7You need &4$&c{@f rank}&7 to do this!"
- stop
- if {rank.%player%} is "f":
- if player's balance >= {@g rank}:
- send "{@pr} &7You have ranked up to &bG&7."
- set {rank.%player%} to "G"
- remove {@g rank} from player's balance
- stop
- else:
- send "{@pw} &7You don't have enough money to do this!"
- send "{@pw} &7You need &4$&c{@g rank}&7 to do this!"
- stop
- if {rank.%player%} is "g":
- if player's balance >= {@h rank}:
- send "{@pr} &7You have ranked up to &bH&7."
- set {rank.%player%} to "H"
- remove {@h rank} from player's balance
- stop
- else:
- send "{@pw} &7You don't have enough money to do this!"
- send "{@pw} &7You need &4$&c{@h rank}&7 to do this!"
- stop
- if {rank.%player%} is "h":
- if player's balance >= {@i rank}:
- send "{@pr} &7You have ranked up to &bI&7."
- set {rank.%player%} to "I"
- remove {@i rank} from player's balance
- stop
- else:
- send "{@pw} &7You don't have enough money to do this!"
- send "{@pw} &7You need &4$&c{@i rank}&7 to do this!"
- stop
- if {rank.%player%} is "I":
- if player's balance >= {@j rank}:
- send "{@pr} &7You have ranked up to &bJ&7."
- set {rank.%player%} to "J"
- remove {@j rank} from player's balance
- stop
- else:
- send "{@pw} &7You don't have enough money to do this!"
- send "{@pw} &7You need &4$&c{@j rank}&7 to do this!"
- stop
- if {rank.%player%} is "J":
- if player's balance >= {@k rank}:
- send "{@pr} &7You have ranked up to &bK&7."
- set {rank.%player%} to "K"
- remove {@k rank} from player's balance
- stop
- else:
- send "{@pw} &7You don't have enough money to do this!"
- send "{@pw} &7You need &4$&c{@k rank}&7 to do this!"
- stop
- if {rank.%player%} is "K":
- if player's balance >= {@l rank}:
- send "{@pr} &7You have ranked up to &bL&7."
- set {rank.%player%} to "L"
- remove {@l rank} from player's balance
- stop
- else:
- send "{@pw} &7You don't have enough money to do this!"
- send "{@pw} &7You need &4$&c{@l rank}&7 to do this!"
- stop
- if {rank.%player%} is "L":
- if player's balance >= {@m rank}:
- send "{@pr} &7You have ranked up to &bM&7."
- set {rank.%player%} to "M"
- remove {@m rank} from player's balance
- stop
- else:
- send "{@pw} &7You don't have enough money to do this!"
- send "{@pw} &7You need &4$&c{@m rank}&7 to do this!"
- stop
- if {rank.%player%} is "m":
- if player's balance >= {@n rank}:
- send "{@pr} &7You have ranked up to &bJ&7."
- set {rank.%player%} to "N"
- remove {@n rank} from player's balance
- stop
- else:
- send "{@pw} &7You don't have enough money to do this!"
- send "{@pw} &7You need &4$&c{@n rank}&7 to do this!"
- stop
- if {rank.%player%} is "n":
- if player's balance >= {@o rank}:
- send "{@pr} &7You have ranked up to &bO&7."
- set {rank.%player%} to "O"
- remove {@o rank} from player's balance
- stop
- else:
- send "{@pw} &7You don't have enough money to do this!"
- send "{@pw} &7You need &4$&c{@o rank}&7 to do this!"
- stop
- if {rank.%player%} is "O":
- if player's balance >= {@p rank}:
- send "{@pr} &7You have ranked up to &bP&7."
- set {rank.%player%} to "P"
- remove {@p rank} from player's balance
- stop
- else:
- send "{@pw} &7You don't have enough money to do this!"
- send "{@pw} &7You need &4$&c{@p rank}&7 to do this!"
- stop
- if {rank.%player%} is "p":
- if player's balance >= {@q rank}:
- send "{@pr} &7You have ranked up to &bQ&7."
- set {rank.%player%} to "Q"
- remove {@q rank} from player's balance
- stop
- else:
- send "{@pw} &7You don't have enough money to do this!"
- send "{@pw} &7You need &4$&c{@q rank}&7 to do this!"
- stop
- if {rank.%player%} is "Q":
- if player's balance >= {@r rank}:
- send "{@pr} &7You have ranked up to &bR&7."
- set {rank.%player%} to "R"
- remove {@r rank} from player's balance
- stop
- else:
- send "{@pw} &7You don't have enough money to do this!"
- send "{@pw} &7You need &4$&c{@r rank}&7 to do this!"
- stop
- if {rank.%player%} is "R":
- if player's balance >= {@s rank}:
- send "{@pr} &7You have ranked up to &bS&7."
- set {rank.%player%} to "S"
- remove {@s rank} from player's balance
- stop
- else:
- send "{@pw} &7You don't have enough money to do this!"
- send "{@pw} &7You need &4$&c{@s rank}&7 to do this!"
- stop
- if {rank.%player%} is "S":
- if player's balance >= {@t rank}:
- send "{@pr} &7You have ranked up to &bT&7."
- set {rank.%player%} to "T"
- remove {@t rank} from player's balance
- stop
- else:
- send "{@pw} &7You don't have enough money to do this!"
- send "{@pw} &7You need &4$&c{@t rank}&7 to do this!"
- stop
- if {rank.%player%} is "T":
- if player's balance >= {@u rank}:
- send "{@pr} &7You have ranked up to &bU&7."
- set {rank.%player%} to "U"
- remove {@u rank} from player's balance
- stop
- else:
- send "{@pw} &7You don't have enough money to do this!"
- send "{@pw} &7You need &4$&c{@u rank}&7 to do this!"
- stop
- if {rank.%player%} is "U":
- if player's balance >= {@t rank}:
- send "{@pr} &7You have ranked up to &bV&7."
- set {rank.%player%} to "V"
- remove {@v rank} from player's balance
- stop
- else:
- send "{@pw} &7You don't have enough money to do this!"
- send "{@pw} &7You need &4$&c{@v rank}&7 to do this!"
- stop
- if {rank.%player%} is "V":
- if player's balance >= {@w rank}:
- send "{@pr} &7You have ranked up to &bW&7."
- set {rank.%player%} to "W"
- remove {@w rank} from player's balance
- stop
- else:
- send "{@pw} &7You don't have enough money to do this!"
- send "{@pw} &7You need &4$&c{@w rank}&7 to do this!"
- stop
- if {rank.%player%} is "W":
- if player's balance >= {@x rank}:
- send "{@pr} &7You have ranked up to &bX&7."
- set {rank.%player%} to "X"
- remove {@x rank} from player's balance
- stop
- else:
- send "{@pw} &7You don't have enough money to do this!"
- send "{@pw} &7You need &4$&c{@x rank}&7 to do this!"
- stop
- if {rank.%player%} is "x":
- if player's balance >= {@y rank}:
- send "{@pr} &7You have ranked up to &bY&7."
- set {rank.%player%} to "Y"
- remove {@y rank} from player's balance
- stop
- else:
- send "{@pw} &7You don't have enough money to do this!"
- send "{@pw} &7You need &4$&c{@y rank}&7 to do this!"
- stop
- if {rank.%player%} is "Y":
- if player's balance >= {@z rank}:
- send "{@pr} &7You have ranked up to &bZ&7."
- set {rank.%player%} to "Z"
- remove {@z rank} from player's balance
- stop
- else:
- send "{@pw} &7You don't have enough money to do this!"
- send "{@pw} &7You need &4$&c{@z rank}&7 to do this!"
- stop
- if {rank.%player%} is "Z":
- send "{@r} &7Failed while executing, you are at the maximum rank!"
- stop
- command /rank:
- trigger:
- send "You are ""%{rank.%player%}%"""
- command /setrank [<offlineplayer>] [<text>]:
- permission: *
- permission message: {@pw} &7You don't have permission to execute this command!
- trigger:
- if arg 2 is set:
- if arg 2 is not "reset":
- set {rank.%arg 1%} to arg 2
- send "{@pr} &7You have set %arg 1%'s a-z rank to %arg 2%."
- send "{@pr} &7Your alphebetical rank was set to %arg 2% by %player's display name%&7." to arg 1
- else:
- delete {rank.%arg 1%}
- send "{@pr} &7You have reset %arg 1%'s a-z rank."
- send "{@pr} &7Your alphebetical rank was reset by %player's display name%&7." to arg 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement