variables: {chat} = false command /chat []: trigger: if argument 1 is "off": set {chat} to false send "&7Chat zostal wylaczony przez %player%" to all players if argument 1 is "on": set {chat} to true send "&7Chat zostal wlaczony przez %player%" to all players if argument 1 is "czysc": loop 100 times: send "" send "&7Chat zostal wyczyszczony przez %player%" to all players on chat: if {chat} is false: cancel event else: stop