Advertisement
WilliamIsntHere

Untitled

Apr 23rd, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. options:
  2. #What it broadcasts to the server when someone mutes the chat.
  3. chat-mute-message : &7>> &aChat was muted by&2 %player%&a.
  4. #What it broadcasts to the server when someone un mutes the chat.
  5. chat-unmute-message : &7>> &aChat was un-muted by&2 %player%
  6. #what it says when someone trys to talk when the chat is muted
  7. chat-muted-message : &7>> &aChat is muted right now. &2Try again later
  8. #If people with the permission can talk (false means that no one can talk, true means that ppl with the permission can talk, when chat is muted)
  9. chat-bypass-allow : false
  10. #The permission needed to use /gmute
  11. chat-gmute-perm : mute.global
  12. #The message when someone bypasses global mute
  13. chat-bypass : &7>> &aYou bypassed Global Chat Mute.
  14. #Permission to bypass the global mute
  15. bypass-perm : mute.global.bypass
  16.  
  17. command /gmute:
  18. description: Will mute the chat
  19. permission: {@chat-gmute-perm}
  20. trigger:
  21. if {gmute} is false:
  22. set {gmute} to true
  23. broadcast "{@chat-mute-message}"
  24. else:
  25. set {gmute} to false
  26. broadcast "{@chat-unmute-message}"
  27. on chat:
  28. if {gmute} is true:
  29. if {@chat-bypass-allow} is true:
  30. if player has permission "{@bypass-perm}":
  31. message "{@chat-bypass}"
  32. else:
  33. cancel event
  34. message "{@chat-muted-message}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement