Advertisement
Itsyuumello2

Untitled

Nov 27th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. command /rank [<text>] [<offline player>] [<text>]:
  2. permission: skript.owner
  3. permission message: &cThis command can be used by people with admin or higher privileges.
  4. trigger:
  5. if arg 1 is not set:
  6. send "&c-----------------------------"
  7. send "&4/rank set <player> <rank>"
  8. send "&4/rank reset <player>"
  9. send "&4/rnak info"
  10. send "&c-----------------------------"
  11. if arg 1 is "set":
  12. if arg 2 is set:
  13. if arg 3 is "owner":
  14. set {rank.%arg 2%} to "&c[OWNER]"
  15. send "%arg 2% &7set &cOWNER"
  16. if arg 3 is "admin":
  17. set {rank.%arg 2%} to "&c[ADMINISTRATOR]"
  18. send "%arg 2% &7set &cADMINISTRATOR"
  19. if arg 3 is "premium":
  20. set {rank.%arg 2%} to "&d[Premium]"
  21. send "%arg 2% &7set &dPREMIUM"
  22. if arg 3 is "default":
  23. set {rank.%arg 2%} to "&7"
  24. send "%arg 2% &7set DEFAULT"
  25. else:
  26. send "&cUsage: /rank <player> <rank>"
  27. send "&cRanks: &7DEFAULT &dPREMIUM &cADMIN"
  28. if arg 1 is "reset":
  29. if arg 2 is set:
  30. set {rank.%arg 2%} to "&7"
  31. send "&cThe rank of &4%arg 2% &chas been reset to &7&lDEFAULT"
  32. send "&cYour rank has been reset by &4%player%! &cYour current rank is now &7&lDEFAULT" to arg 2
  33. else:
  34. send "&c/rank reset <player> &7:: &aIt sets the rank of the player to &7&lDefault"
  35.  
  36. on chat:
  37. cancel event
  38. broadcast "%{rank.%player%}% %player%: &f%message%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement