Jump to content

There is 1 error with my skript that I cant fix


Ramina__

Recommended Posts

 there is 1 error with my skript and it says it doesn't understand The "on chat:" element

 

command /mutechat:
  permission: mutechat.use
  trigger:
    if {mutechat} is false:
      set {mutechat} to true
      broadcast "&b&lDeltaSmp&8>>  &cChat has been muted by %player%"
    else:
      set {mutechat} to false
      broadcast "&b&lDeltaSmp&8>>  &aChat has been unmuted by %player%"


      on chat:
        if player does not have permission "mutechat.bypass":
          if {mutechat} is true:
            cancel event
            send "&cThe chat 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...