on load: clear {clear::*} loop 100 times: add "" to {clear::*} add "&bTwój chat został wyczyszczony." to {clear::*} on chat: if {chat::status} is set: if !{chat::status}: if player do not have permission "chatmanager.*": cancel event send "&3Chat jest wyłączony." command /chatmanager [] []: aliases: chat, cm permission: chatmanager.* trigger: if arg 1 is not set: send "&bChat&3&lManager &7&m &r" send "&b /chat help&7 - wyświetl pomoc" send "&b /chat clear [gracz]&7 - wyczyść chat" send "&b /chat on&7 - włącz chat" send "&b /chat off&7 - wyłącz chat" else: if arg 1 is "wyczysc" or "clear": if arg 2 is set: send {clear::*} to arg 2 else: set {_gracze::*} to all players loop {_gracze::*}: if loop-value is not an op: remove loop-value from {_gracze::*} send {clear::*} to {_gracze::*} stop if arg 1 is "on" or "wlacz": if {chat::status}: send "&3Chat aktualnie jest włączony." else: set {chat::status} to true send "&bWłączono chat" stop if arg 1 is "off" or "wylacz": if !{chat::status}: send "&3Chat aktualnie jest wyłączony." else: set {chat::status} to false send "&bWyłączono chat"