Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- A: 200000
- B: 400000
- C: 800000
- D: 1200000
- E: 2000000
- F: 3500000
- G: 5000000
- H: 10000000
- I: 15000000
- J: 20000000
- K: 30000000
- L: 40000000
- M: 50000000
- N: 60000000
- O: 80000000
- P: 100000000
- Q: 150000000
- R: 200000000
- S: 400000000
- T: 600000000
- U: 800000000
- V: 1000000000
- W: 2000000000
- X: 4000000000
- Y: 6000000000
- Z: 1000000000000
- command /rankup:
- trigger:
- rankup(player)
- command /rank:
- trigger:
- send "&aYour rank: %{rank::%player's uuid%}%%nl%&aYour prestige: &c%{prestige::%player's uuid%}%"
- function rankup(P: player):
- set {_U} to {_P}'s uuid
- if {prestige::%{_U}%} isn't set:
- set {prestige::%{_U}%} to 0
- set {prestige::cost::%{_U}%} to 1000000
- if {rank::%{_U}%} isn't set:
- set {rank::%{_U}%} to "&cNot set"
- open chest inventory with 3 rows named "&a&lRankup" to {_P}
- set {_var} to -1
- set {_var2} to 17
- loop 9 times:
- add 1 to {_var}
- add 1 to {_var2}
- set slot {_var} and {_var2} of {_P}'s current inventory to black stained glass pane named ""
- set slot 12 of {_P}'s current inventory to green concrete named "&a&lConfirm Rankup!"
- set slot 14 of {_P}'s current inventory to red concrete named "&c&lClose"
- command /prestige:
- trigger:
- if {rank::%player's uuid%} is "&8[&a&lZ&8]":
- if player's balance >= {prestige::cost::%player's uuid%}:
- take {prestige::cost::%player's uuid%} from player's balance
- add 1000000 to {prestige::cost::%player's uuid%}
- add 1 to {prestige::%player's uuid%}
- set {rank::%player's uuid%} to "&8[&a&lA&8]"
- broadcast "&a&l%player%&c&l has entered prestige: %{prestige::%player's uuid%}%"
- else:
- send "&cYou dont have enough money to prestige!"
- on inventory click:
- if name of player's current inventory contains "&a&lRankup":
- cancel event
- if click inventory isn't player's inventory:
- if index of event-slot is 14:
- close player's inventory
- if index of event-slot is 12:
- if {rank::%player's uuid%} is "&cNot set":
- if player's balance >= {@A}:
- remove {@A} from player's balance
- set {rank::%player's uuid%} to "&8[&a&lA&8]"
- send "&cYou have rankup to &a&lA"
- else:
- send "&cYou dont have enough money to rankup!"
- else if {rank::%player's uuid%} is "&8[&a&lA&8]":
- if player's balance >= {@B}:
- remove {@B} from player's balance
- set {rank::%player's uuid%} to "&8[&a&lB&8]"
- send "&cYou have rankup to &a&lB"
- else:
- send "&cYou dont have enough money to rankup!"
- else if {rank::%player's uuid%} is "&8[&a&lB&8]":
- if player's balance >= {@C}:
- remove {@C} from player's balance
- set {rank::%player's uuid%} to "&8[&a&lC&8]"
- send "&cYou have rankup to &a&lC"
- else:
- send "&cYou dont have enough money to rankup!"
- else if {rank::%player's uuid%} is "&8[&a&lC&8]":
- if player's balance >= {@D}:
- remove {@D} from player's balance
- set {rank::%player's uuid%} to "&8[&a&lD&8]"
- send "&cYou have rankup to &a&lD"
- else:
- send "&cYou dont have enough money to rankup!"
- else if {rank::%player's uuid%} is "&8[&a&lD&8]":
- if player's balance >= {@E}:
- remove {@E} from player's balance
- set {rank::%player's uuid%} to "&8[&a&lE&8]"
- send "&cYou have rankup to &a&lE"
- else:
- send "&cYou dont have enough money to rankup!"
- else if {rank::%player's uuid%} is "&8[&a&lE&8]":
- if player's balance >= {@F}:
- remove {@F} from player's balance
- set {rank::%player's uuid%} to "&8[&a&lF&8]"
- send "&cYou have rankup to &a&lF"
- else:
- send "&cYou dont have enough money to rankup!"
- else if {rank::%player's uuid%} is "&8[&a&lF&8]":
- if player's balance >= {@G}:
- remove {@G} from player's balance
- set {rank::%player's uuid%} to "&8[&a&lG&8]"
- send "&cYou have rankup to &a&lG"
- else:
- send "&cYou dont have enough money to rankup!"
- else if {rank::%player's uuid%} is "&8[&a&lG&8]":
- if player's balance >= {@H}:
- remove {@H} from player's balance
- set {rank::%player's uuid%} to "&8[&a&lH&8]"
- send "&cYou have rankup to &a&lH"
- else:
- send "&cYou dont have enough money to rankup!"
- else if {rank::%player's uuid%} is "&8[&a&lH&8]":
- if player's balance >= {@I}:
- remove {@I} from player's balance
- set {rank::%player's uuid%} to "&8[&a&lI&8]"
- send "&cYou have rankup to &a&lI"
- else:
- send "&cYou dont have enough money to rankup!"
- else if {rank::%player's uuid%} is "&8[&a&lI&8]":
- if player's balance >= {@J}:
- remove {@J} from player's balance
- set {rank::%player's uuid%} to "&8[&a&lJ&8]"
- send "&cYou have rankup to &a&lJ"
- else:
- send "&cYou dont have enough money to rankup!"
- else if {rank::%player's uuid%} is "&8[&a&lJ&8]":
- if player's balance >= {@K}:
- remove {@K} from player's balance
- set {rank::%player's uuid%} to "&8[&a&lK&8]"
- send "&cYou have rankup to &a&lK"
- else:
- send "&cYou dont have enough money to rankup!"
- else if {rank::%player's uuid%} is "&8[&a&lK&8]":
- if player's balance >= {@L}:
- remove {@L} from player's balance
- set {rank::%player's uuid%} to "&8[&a&lL&8]"
- send "&cYou have rankup to &a&lL"
- else:
- send "&cYou dont have enough money to rankup!"
- else if {rank::%player's uuid%} is "&8[&a&lL&8]":
- if player's balance >= {@M}:
- remove {@M} from player's balance
- set {rank::%player's uuid%} to "&8[&a&lM&8]"
- send "&cYou have rankup to &a&lM"
- else:
- send "&cYou dont have enough money to rankup!"
- else if {rank::%player's uuid%} is "&8[&a&lM&8]":
- if player's balance >= {@N}:
- remove {@N} from player's balance
- set {rank::%player's uuid%} to "&8[&a&lN&8]"
- send "&cYou have rankup to &a&lN"
- else:
- send "&cYou dont have enough money to rankup!"
- else if {rank::%player's uuid%} is "&8[&a&lN&8]":
- if player's balance >= {@O}:
- remove {@O} from player's balance
- set {rank::%player's uuid%} to "&8[&a&lO&8]"
- send "&cYou have rankup to &a&lO"
- else:
- send "&cYou dont have enough money to rankup!"
- else if {rank::%player's uuid%} is "&8[&a&lO&8]":
- if player's balance >= {@P}:
- remove {@P} from player's balance
- set {rank::%player's uuid%} to "&8[&a&lP&8]"
- send "&cYou have rankup to &a&lP"
- else:
- send "&cYou dont have enough money to rankup!"
- else if {rank::%player's uuid%} is "&8[&a&lP&8]":
- if player's balance >= {@Q}:
- remove {@Q} from player's balance
- set {rank::%player's uuid%} to "&8[&a&lQ&8]"
- send "&cYou have rankup to &a&lQ"
- else:
- send "&cYou dont have enough money to rankup!"
- else if {rank::%player's uuid%} is "&8[&a&lQ&8]":
- if player's balance >= {@R}:
- remove {@R} from player's balance
- set {rank::%player's uuid%} to "&8[&a&lR&8]"
- send "&cYou have rankup to &a&lR"
- else:
- send "&cYou dont have enough money to rankup!"
- else if {rank::%player's uuid%} is "&8[&a&lR&8]":
- if player's balance >= {@S}:
- remove {@S} from player's balance
- set {rank::%player's uuid%} to "&8[&a&lS&8]"
- send "&cYou have rankup to &a&lS"
- else:
- send "&cYou dont have enough money to rankup!"
- else if {rank::%player's uuid%} is "&8[&a&lS&8]":
- if player's balance >= {@T}:
- remove {@T} from player's balance
- set {rank::%player's uuid%} to "&8[&a&lT&8]"
- send "&cYou have rankup to &a&lT"
- else:
- send "&cYou dont have enough money to rankup!"
- else if {rank::%player's uuid%} is "&8[&a&lT&8]":
- if player's balance >= {@U}:
- remove {@U} from player's balance
- set {rank::%player's uuid%} to "&8[&a&lU&8]"
- send "&cYou have rankup to &a&lU"
- else:
- send "&cYou dont have enough money to rankup!"
- else if {rank::%player's uuid%} is "&8[&a&lU&8]":
- if player's balance >= {@V}:
- remove {@V} from player's balance
- set {rank::%player's uuid%} to "&8[&a&lV&8]"
- send "&cYou have rankup to &a&lV"
- else:
- send "&cYou dont have enough money to rankup!"
- else if {rank::%player's uuid%} is "&8[&a&lV&8]":
- if player's balance >= {@W}:
- remove {@W} from player's balance
- set {rank::%player's uuid%} to "&8[&a&lW&8]"
- send "&cYou have rankup to &a&lW"
- else:
- send "&cYou dont have enough money to rankup!"
- else if {rank::%player's uuid%} is "&8[&a&lW&8]":
- if player's balance >= {@X}:
- remove {@X} from player's balance
- set {rank::%player's uuid%} to "&8[&a&lX&8]"
- send "&cYou have rankup to &a&lX"
- else:
- send "&cYou dont have enough money to rankup!"
- else if {rank::%player's uuid%} is "&8[&a&lX&8]":
- if player's balance >= {@Y}:
- remove {@Y} from player's balance
- set {rank::%player's uuid%} to "&8[&a&lY&8]"
- send "&cYou have rankup to &a&lY"
- else:
- send "&cYou dont have enough money to rankup!"
- else if {rank::%player's uuid%} is "&8[&a&lY&8]":
- if player's balance >= {@Z}:
- remove {@Z} from player's balance
- set {rank::%player's uuid%} to "&8[&a&lZ&8]"
- send "&cYou have rankup to &a&lZ"
- else:
- send "&cYou dont have enough money to rankup!"
- on chat:
- if {p.%player%} is not set:
- set {p.%player%} to 0
- set {_f} to formatNumber({p.%player%})
- set the chat format to "&4%{rank::%player's uuid%}% &8[&c&l%{prestige::%player's uuid%}%&8] %player's prefix%%player% &8»&r %message%"
- else:
- set {_f} to formatNumber({p.%player%})
- set the chat format to "&4%{rank::%player's uuid%}% &8[&c&l%{prestige::%player's uuid%}%&8] %player's prefix%%player% &8»&r %message%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement