Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /rankup:
- trigger:
- if {Prison.Rank.%uuid of player%} is not set:
- set {Prison.Rank.%uuid of player%} to 0
- if {Prison.Prestige.%uuid of player%} is not set:
- set {Prison.Prestige.%uuid of player%} to 0
- if {Confirm.%player%} is not set:
- set {Confirm.%player%} to 0
- if {Prison.Prestige.%uuid of player%} is 0:
- if {Prison.Rank.%uuid of player%} is 0:
- if {Confirm.%player%} is 0:
- message "{@prefix} &7Rank &aB &7costs &e5k"
- message "{@prefix} &7Type &e/rankup &7again to confirm"
- set {Confirm.%player%} to 1
- else if {Confirm.%player%} >= 1:
- if player's balance >= 5000:
- message "{@prefix} &7You're now rank &aB"
- remove 5000 from player's balance
- set {Confirm.%player%} to 0
- set {Prison.Rank.%uuid of player%} to 1
- make console execute "/pex user %player% add essentials.warps.B"
- else:
- set {_Money.Missing} to 5000 - player's balance
- message "{@prefix} &7You need &e%{_Money.Missing}% &7To rank up!"
- set {Confirm.%player%} to 0
- if {Prison.Rank.%uuid of player%} is 1:
- if {Confirm.%player%} is 0:
- message "{@prefix} &7Rank &aC &7costs &e10k"
- message "{@prefix} &7Type &e/rankup &7again to confirm"
- set {Confirm.%player%} to 1
- else if {Confirm.%player%} >= 1:
- if player's balance >= 10000:
- message "{@prefix} &7You're now rank &aC"
- remove 10000 from player's balance
- set {Confirm.%player%} to 0
- set {Prison.Rank.%uuid of player%} to 2
- make console execute "/pex user %player% add essentials.warps.C"
- else:
- set {_Money.Missing} to 10000 - player's balance
- message "{@prefix} &7You need &e%{_Money.Missing}% &7To rank up!"
- set {Confirm.%player%} to 0
- if {Prison.Rank.%uuid of player%} is 2:
- if {Confirm.%player%} is 0:
- message "{@prefix} &7Rank &aD &7costs &e15k"
- message "{@prefix} &7Type &e/rankup &7again to confirm"
- set {Confirm.%player%} to 1
- else if {Confirm.%player%} >= 1:
- if player's balance >= 15000:
- message "{@prefix} &7You're now rank &aD"
- remove 15000 from player's balance
- set {Confirm.%player%} to 0
- set {Prison.Rank.%uuid of player%} to 3
- else:
- set {_Money.Missing} to 15000 - player's balance
- message "{@prefix} &7You need &e%{_Money.Missing}% &7To rank up!"
- set {Confirm.%player%} to 0
- if {Prison.Rank.%uuid of player%} is 3:
- if {Confirm.%player%} is 0:
- message "{@prefix} &7Rank &aE &7costs &e20k"
- message "{@prefix} &7Type &e/rankup &7again to confirm"
- set {Confirm.%player%} to 1
- else if {Confirm.%player%} >= 1:
- if player's balance >= 20000:
- message "{@prefix} &7You're now rank &aE"
- remove 20000 from player's balance
- set {Confirm.%player%} to 0
- set {Prison.Rank.%uuid of player%} to 4
- else:
- set {_Money.Missing} to 20000 - player's balance
- message "{@prefix} &7You need &e%{_Money.Missing}% &7To rank up!"
- set {Confirm.%player%} to 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement