variables: {chat} = true {waitstatus.%player%} = 0 command /chat [] []: usage: &7[&6&lCHAT&7] &c/chat pomoc permission: chat.command permission message: &4Nie masz dostepu do tej komendy. trigger: arg 1 is not set: send "&cUzyj: /chat pomoc" stop arg 1 is "pomoc": send "&a-------&7[&6&lCHAT&7]&a-------" send "&6/chat &bon &6- &cWlacza chat" send "&6/chat &boff &6- &cWylacza chat" send "&6/chat &bclear &6- &cCzysci chat" send "&6/chat &bpomoc &6- &cWyswietla pomoc" send "&6/chat &bGUI &6- &cBedzie w nastepnej wersji!" send "&a-------&7[&6&lCHAT&7]&a-------" stop arg 1 is "on": loop 100 times: broadcast " " set {chat} to true broadcast "&7[&6&lCHAT&7] &aChat zostal wlaczony przez &c%player%&a!" stop arg 1 is "off": loop 100 times: broadcast " " set {chat} to false broadcast "&7[&6&lCHAT&7] &aChat zostal wylaczony przez &c%player%&a!" stop arg 1 is "clear": loop 100 times: broadcast " " broadcast "&7[&6&lCHAT&7] &aChat zostal wyczyszczony przez &c%player%&a!" stop arg 1 is "czas": arg 2 is not set: send "&cUzyj: /chat pomoc" stop arg 2 is "on": set {wait.status} to 1 send "&7[&6&lCHAT&7] &aWlaczono opoznienie pisania na czacie!" stop arg 2 is "off": set {wait.status} to 0 send "&7[&6&lCHAT&7] &aWylaczono opoznienie pisania na czacie!" stop on chat: {chat} is false: cancel event send "&7[&6&lCHAT&7] &aChat jest wylaczony!" stop on chat: if player doesn't have permissions "chat.spam": set {_czas} to difference between {waitstatus.%player%} and now if {_czas} is less than 5 seconds: send "&cNa chacie mozna pisac co 5 sekund!" cancel event stop else: set {waitstatus.%player%} to now