Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- #What it broadcasts to the server when someone mutes the chat.
- chat-mute-message : &7>> &aChat was muted by&2 %player%&a.
- #What it broadcasts to the server when someone un mutes the chat.
- chat-unmute-message : &7>> &aChat was un-muted by&2 %player%
- #what it says when someone trys to talk when the chat is muted
- chat-muted-message : &7>> &aChat is muted right now. &2Try again later
- #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)
- chat-bypass-allow : false
- #The permission needed to use /gmute
- chat-gmute-perm : mute.global
- #The message when someone bypasses global mute
- chat-bypass : &7>> &aYou bypassed Global Chat Mute.
- #Permission to bypass the global mute
- bypass-perm : mute.global.bypass
- command /gmute:
- description: Will mute the chat
- permission: {@chat-gmute-perm}
- trigger:
- if {gmute} is false:
- set {gmute} to true
- broadcast "{@chat-mute-message}"
- else:
- set {gmute} to false
- broadcast "{@chat-unmute-message}"
- on chat:
- if {gmute} is true:
- if {@chat-bypass-allow} is true:
- if player has permission "{@bypass-perm}":
- message "{@chat-bypass}"
- else:
- cancel event
- message "{@chat-muted-message}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement