Jump to content

Permanent Mute [SKRIPT]


SmileyScripts

Recommended Posts

options:
    logo: &fDev&6Cloud &8¬
 
command /pmute [<player>]:
    permission: pmute
    trigger:
        if {mute::%arg-1's uuid%} isn't set:
            broadcast "{@logo} &6%arg-1% has been muted!"
            set {mute::%arg-1's uuid%} to true
            stop
        else:
            if {mute::%arg-1's uuid%} is true:
                broadcast "{@logo} &6%arg-1% has been unmuted!"
                set {mute::%arg-1's uuid%} to false
                stop
            else:
                broadcast "{@logo} &6%arg-1% has been muted!"
                set {mute::%arg-1's uuid%} to true
                stop
 
on chat:
    if {mute::%player's uuid%} is true:
        cancel event
        send "{@logo} &cYou cannot do that!" to player
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...