Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- PrestigeCost: 100000
- firstRank: Prisoner
- lastRank: God
- pr: &a&lPrestige &8»
- error: &c&lError &8»
- NoPerm: &cYou don't enough permissions to do that.
- PresTitle: &aCongratulations!
- PresSubtitle: &7You've Presitged to &a&l%{_pres}%
- PresMsg: &f&lGG&a! You've Prestiged to &f&l%{_pres}%
- PresBroadcast: &a>&b>&c> &f%{_p}% &aPrestiged to &f%{_pres}%
- Particle: heart
- ParticleCount: 50
- Sound: ENTITY_PLAYER_LEVELUP
- on join:
- {Prestige::playerdata::%uuid of player%} is not set
- set {Prestige::playerdata::%uuid of player%} to 0
- function prestigeUp(p: player):
- set {_pU} to uuid of {_p}
- if {_p} doesn't have permission "essentials.kits.{@lastRank}":
- send "{@pr} &cYou need to be at rank &f{@lastRank} &cto Prestige." to {_p}
- set {_cant} to true
- {_cant} is not set
- set {_price} to {@PrestigeCost} * {Prestige::playerdata::%{_pU}%} if {Prestige::playerdata::%{_pU}%} > 0 else {@PrestigeCost}
- if {_p}'s balance >= {_price}:
- remove {_price} from {_p}'s balance
- add 1 to {Prestige::playerdata::%{_pU}%}
- if player's group is not "coal" or "iron" or "gold" or "diamond+" or "emerald" or "legend" or "god" or "jrmod" or "mod" or "admin" or "manager" or "staffmanager" or "dev" or "coowner" or "owner":
- console command "pex user %{_p}% group remove {@lastRank}"
- console command "pex user %{_p}% group add {@firstRank}"
- teleport {_p} to spawn of (world of {_p})
- set {_pres} to {Prestige::playerdata::%{_pU}%}
- send {_p} title "{@PresTitle}" with subtitle "{@PresSubtitle}" for 3 seconds
- send "{@pr} {@PresMsg}" to {_p}
- send "{@PresBroadcast}" to all players
- loop all players in radius 50 around {_p}:
- show {@ParticleCount} "{@Particle}" particles at {_p} for loop-player
- play "{@Sound}" to {_p}
- else:
- send "{@pr} &cYou don't have enough money. &7&o(Cost: &f$%{_price}%&7&o)" to {_p}
- command /prestige [<text>] [<offlineplayer>] [<integer>]:
- aliases: pres
- trigger:
- if arg-1 is "help":
- if player has permission "prestige.help":
- send "{@pr} &a/pres help &8- &7Shows this message."
- send "{@pr} &a/pres set <player> <number> &8- &7Change player's prestige."
- send "{@pr} &a/pres &8- &7To prestige."
- stop
- else:
- send "{@NoPerm}"
- stop
- if arg-1 is "set":
- if player has permission "prestige.set":
- if arg-2 is set:
- if arg-3 is set:
- set {Prestige::playerdata::%uuid of arg-2%} to arg-3
- send "{@pr} &aSuccessfully set &f%arg-2%&a's prestige to &f%arg-3%" to player
- send "{@pr} &aYour prestige has been manually set to &f%arg-3%&a." to arg-2
- stop
- else:
- send "{@error} &cMissing Prestige number."
- stop
- else:
- send "{@error} &cMissing player name."
- stop
- else:
- send "{@NoPerm}"
- stop
- else:
- prestigeUp(player)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement