command /chat []: permission: chat.* permission message: &cBrak pozwolenia! trigger: if arg-1 is "clear": loop 100 times: send "" send "&8&l----------------------------------------" to all player send "&aChat zostal wyczyszczony przez &b%player%" to all player send "&8&l----------------------------------------" to all player if arg-1 is "off": set {mutechat} to true broadcast "&cChat zostal wylaczony przez &a%player%!" if arg-1 is "on": set {mutechat} to false broadcast "&aChat zostal wlaczony przez &e%player%!" on chat: if player doesn't have permission "chat.mute.bypass": if {mutechat} is true: cancel event send "&fChat zostal wylaczony!"