Jump to content

Please help making a mute script for the whole chat


nqpt

Recommended Posts

Here's a script. execute the commands "/lp group <group> chatmute.bypass" with <group> replaced with each one of your ranks you'd like to be able to bypass the mute. /mutechat is used to enable and disable the mute.

command /mutechat:
    permission: chatmute
    permission message: &c You don't have the required permission to perform that command.
    trigger:
        if {Globalchat} is not set:
            set {Globalchat} to true
            send "&cChat Has Been Muted By %player%" to all players
            stop trigger

        if {Globalchat} is set:
            clear {Globalchat}
            send "&aChat Has Been Unmuted By %player%" to all players

on chat:
    if {Globalchat} is true:
        if player has permission "chatmute.bypass":
            stop trigger
        else:
            cancel event
            send "&cChat is currently muted."

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...