Advertisement
Guest User

Untitled

a guest
Jan 29th, 2020
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. command /rank [<player>] [<string>]:
  2. permission: op
  3. trigger:
  4. if arg-1 isn't set:
  5. stop
  6. if arg-2 is "Default":
  7. execute console command "/pex group Default user set %{arg-1}%"
  8. send "&8<&fSERVER&8> &7&oAdded &b%{arg 1}% &7&oto &bDefault&7&o."
  9. set {chat::%uuid of arg 1%} to 0
  10. if arg-2 is "Trainee":
  11. execute console command "/pex group Trainee user set %{arg-1}%"
  12. send "&8<&fSERVER&8> &7&oAdded &b%{arg 1}% &7&oto &bTrainee&7&o."
  13. set {chat::%uuid of arg 1%} to 1
  14. if arg-2 is "Staff":
  15. execute console command "/pex group Staff user set %{arg-1}%"
  16. send "&8<&fSERVER&8> &7&oAdded &b%{arg 1}% &7&oto &bStaff&7&o."
  17. set {chat::%uuid of arg 1%} to 2
  18.  
  19. on chat:
  20. if {chat::%player's uuid%} is 0:
  21. cancel event
  22. broadcast "&7&lDEFAULT %player's display name% %{suffix::%player's uuid%}% &8&l>> &r%message%"
  23.  
  24. on chat:
  25. if {chat::%player's uuid%} is 1:
  26. cancel event
  27. broadcast "&e&lTRAINEE %player's display name% %suffix::%player's uuid&8&l>> &r%message%"
  28.  
  29. on chat:
  30. if {chat::%player's uuid%} is 2:
  31. cancel event
  32. broadcast "&c&lSTAFF %player's display name% &8&l>> &r%message%"
  33.  
  34. on first join:
  35. set {chat::%player's uuid%} to 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement