Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /rank [<player>] [<string>]:
- permission: op
- trigger:
- if arg-1 isn't set:
- stop
- if arg-2 is "Default":
- execute console command "/pex group Default user set %{arg-1}%"
- send "&8<&fSERVER&8> &7&oAdded &b%{arg 1}% &7&oto &bDefault&7&o."
- set {chat::%uuid of arg 1%} to 0
- if arg-2 is "Trainee":
- execute console command "/pex group Trainee user set %{arg-1}%"
- send "&8<&fSERVER&8> &7&oAdded &b%{arg 1}% &7&oto &bTrainee&7&o."
- set {chat::%uuid of arg 1%} to 1
- if arg-2 is "Staff":
- execute console command "/pex group Staff user set %{arg-1}%"
- send "&8<&fSERVER&8> &7&oAdded &b%{arg 1}% &7&oto &bStaff&7&o."
- set {chat::%uuid of arg 1%} to 2
- on chat:
- if {chat::%player's uuid%} is 0:
- cancel event
- broadcast "&7&lDEFAULT %player's display name% %{suffix::%player's uuid%}% &8&l>> &r%message%"
- on chat:
- if {chat::%player's uuid%} is 1:
- cancel event
- broadcast "&e&lTRAINEE %player's display name% %suffix::%player's uuid&8&l>> &r%message%"
- on chat:
- if {chat::%player's uuid%} is 2:
- cancel event
- broadcast "&c&lSTAFF %player's display name% &8&l>> &r%message%"
- on first join:
- set {chat::%player's uuid%} to 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement