Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on join:
- if {rankupCost::%player's uuid%} is not set:
- set {rankupCost::%player's uuid%} to 5000
- command /rankup:
- aliases: /ru
- trigger:
- rankup(player, {rankupCost::%player's uuid%})
- function rankup(p: player, i: integer):
- set {_u} to {_p}'s uuid
- if {_p}'s balance >= {_i}:
- add 1 to {rankNumber::%{_u}%}
- remove {_i} from {_p}'s balance
- add 5000 to {rankupCost::%{_u}%}
- if {rankLetter::%{_u}%} is not "Z"
- if {rankNumber::%{_u}%} is 1:
- set {rankLetter::%{_u}%} to "B"
- if {rankNumber::%{_u}%} is 2:
- set {rankLetter::%{_u}%} to "C"
- if {rankNumber::%{_u}%} is 3:
- set {rankLetter::%{_u}%} to "D"
- if {rankNumber::%{_u}%} is 4:
- set {rankLetter::%{_u}%} to "E"
- if {rankNumber::%{_u}%} is 5:
- set {rankLetter::%{_u}%} to "F"
- if {rankNumber::%{_u}%} is 6:
- set {rankLetter::%{_u}%} to "G"
- if {rankNumber::%{_u}%} is 7:
- set {rankLetter::%{_u}%} to "H"
- if {rankNumber::%{_u}%} is 8:
- set {rankLetter::%{_u}%} to "I"
- if {rankNumber::%{_u}%} is 9:
- set {rankLetter::%{_u}%} to "J"
- if {rankNumber::%{_u}%} is 10:
- set {rankLetter::%{_u}%} to "K"
- if {rankNumber::%{_u}%} is 11:
- set {rankLetter::%{_u}%} to "L"
- if {rankNumber::%{_u}%} is 12:
- set {rankLetter::%{_u}%} to "M"
- if {rankNumber::%{_u}%} is 13:
- set {rankLetter::%{_u}%} to "N"
- if {rankNumber::%{_u}%} is 14:
- set {rankLetter::%{_u}%} to "O"
- if {rankNumber::%{_u}%} is 15:
- set {rankLetter::%{_u}%} to "P"
- if {rankNumber::%{_u}%} is 16:
- set {rankLetter::%{_u}%} to "Q"
- if {rankNumber::%{_u}%} is 17:
- set {rankLetter::%{_u}%} to "R"
- if {rankNumber::%{_u}%} is 18:
- set {rankLetter::%{_u}%} to "S"
- if {rankNumber::%{_u}%} is 19:
- set {rankLetter::%{_u}%} to "T"
- if {rankNumber::%{_u}%} is 20:
- set {rankLetter::%{_u}%} to "U"
- if {rankNumber::%{_u}%} is 21:
- set {rankLetter::%{_u}%} to "V"
- if {rankNumber::%{_u}%} is 22:
- set {rankLetter::%{_u}%} to "W"
- if {rankNumber::%{_u}%} is 23:
- set {rankLetter::%{_u}%} to "X"
- if {rankNumber::%{_u}%} is 24:
- set {rankLetter::%{_u}%} to "Y"
- if {rankNumber::%{_u}%} is 25
- set {rankLetter::%{_u}%} to "Z"
- else:
- send "You are already the highest rank" to {_p}
- else:
- send "You do not have enough money to rankup"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement