Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /mutechat:
- aliases: /mc
- permission: essentails.mutehchat
- permission message: &cYou cannot do that!
- trigger:
- if {mutechat} is not set:
- set {mutechat} to true
- broadcast "&8[&bSlowdown&8] &c%player% &7has muted chat!"
- set {mutechat.muted} to "%player%"
- stop
- if {mutechat} is true:
- delete {mutechat.muted}
- delete {mutechat}
- broadcast "&8[&bSlowdown&8] &c%player% &7has unmuted chat!"
- stop
- on chat:
- if {mutechat} is true:
- if player doesn't have permission "essentials.mutehchat.bypass":
- cancel event
- send "&7Chat has been muted, you cannot talk!"
- send " &7Muted by: &c%{mutechat.muted}%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement