command /chat []: trigger: if player has permission "chat.zarzadzanie": if arg 1 is "cc": loop 300 times: send "" to all players send "&7Chat zostal wyczyszczony przez &a%player%" to all players stop trigger if arg 1 is "on": set {chat::stan} to true send "&7Chat zostal &awlaczony" to all players stop trigger if arg 1 is "off": set {chat::stan} to false send "&7Chat zostal &cwylaczony" to all players stop trigger on chat: if sender is player: if {chat::stan} is false: cancel event send "&7>> &cObecnie chat jest wylaczony!"