Advertisement
Guest User

Untitled

a guest
Nov 17th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.15 KB | None | 0 0
  1. on join:
  2. if {firstjoined::%player's uuid%} is not set:
  3. set {rank::%player's uuid%} to "Default"
  4. set {namecolor::%player's uuid%} to "&8"
  5. set {chatcolor::%player's uuid%} to "&7"
  6. set {firstjoined::%player's uuid%} to false
  7. set {rankcolor::%player's uuid%} to "&7"
  8. stop
  9.  
  10. command /chatmute:
  11. permission: chat.mute
  12. trigger:
  13. if {chatmute} is not set:
  14. set {chatmute} to true
  15. broadcast "&4&lCHATMUTE &cThe chat got muted by &e%player%&c!"
  16. stop
  17. if {chatmute} is false:
  18. set {chatmute} to true
  19. broadcast "&4&lCHATMUTE &cThe chat got muted by &e%player%&c!"
  20. stop
  21. if {chatmute} is true:
  22. set {chatmute} to false
  23. broadcast "&4&lCHATMUTE &cThe chat got unmuted by &e%player%&c!"
  24. stop
  25.  
  26. on chat:
  27. if {chatmute} is false:
  28. set chat format to "&8[%{rank::%player's uuid%}%&8] %{namecolor::%player's uuid%}%%player%: %{chatcolor::%player's uuid%}%%message%"
  29. if {chatmute} is not set:
  30. set chat format to "&8[%{rank::%player's uuid%}%&8] %{namecolor::%player's uuid%}%%player%: %{chatcolor::%player's uuid%}%%message%"
  31. if {chatmute} is true:
  32. if player has the permission "chatmute.talk":
  33. set chat format to "&8[%{rank::%player's uuid%}%&8] %{namecolor::%player's uuid%}%%player%: %{chatcolor::%player's uuid%}%%message%"
  34. else:
  35. cancel event
  36. message "&4&lCHATMUTE &cThe chat is muted!"
  37.  
  38. command /setrank <player> <text>:
  39. permission: rank.set
  40. trigger:
  41. if arg-1 and arg-2 is not set:
  42. message "&cUse /setrank <player> <rank>"
  43. if arg-1 and arg-2 is set:
  44. if arg-2 is "Owner":
  45. set {rank::%arg-1's uuid%} to "&4Owner"
  46. if arg-2 is "Builder":
  47. set {rank::%arg-1's uuid%} to "&aBuilder"
  48. if arg-2 is "Developer":
  49. set {rank::%arg-1's uuid%} to "&bDeveloper"
  50. if arg-2 is "Moderator":
  51. set {rank::%arg-1's uuid%} to "&cModerator"
  52. if arg-2 is "Admin":
  53. set {rank::%arg-1's uuid%} to "&9Admin"
  54. if arg-2 is "Default":
  55. set {rank::%arg-1's uuid%} to "&7Default"
  56.  
  57. command /ranks:
  58. permission: rank.list
  59. trigger:
  60. message "&cRanks list:"
  61. message "&4Owner"
  62. message "&aBuilder"
  63. message "&bDeveloper"
  64. message "&9Admin"
  65. message "&7Default"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement