variables: {chat} = true options: tag: &8[&2&lMulti&f&LCraft24] command /c []: trigger: if arg 1 is not set: send "&8=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=" send "" send "&8/&9c on&8 - wlacza czat" send "&8/&9c off&8 - wylacza czat" send "&8/&9c c&8 - czysci czat" send "" send "&8=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=" if arg 1 is "off": if {chat} is true: if player has permission "czat.*": set {chat} to false broadcast "" broadcast " {@tag}" broadcast "&8Czat zostal &cWylaczony" broadcast "" else: send "&8Nie posiadasz uprawnienien (&9czat.*&8)" else: send "&8Czat jest juz wylaczony" if arg 1 is "on": if {chat} is false: if player has permission "czat.*": set {chat} to true broadcast "" broadcast " {@tag}" broadcast "&8Czat zostal &aWlaczony" broadcast "" else: send "&8Nie posiadasz uprawnienien (&9czat.*&8)" else: send "&8Czat jest juz wlaczony" if arg 1 is "c": if player has permission "czat.*": loop 100 times: broadcast "" else: send "&8Nie posiadasz uprawnienien (&9czat.*&8)" on chat: if {chat} is false: if player has permission "czat.*": stop