variables: {chat} = true {wyciszony.%player%} = 0 command /chat [] []: usage: &7[&6&lCHAT&7] &cUzyj: /chat pomoc permission: chat.command permission message: &4Nie masz dostepu do tej komendy. trigger: arg 1 is not set: send "&7[&6&lCHAT&7] &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- &cOtwiera GUI" send "&6/chat &bwycisz &7[&c&lNICK&7]&6 - &cWycisza gracza" send "&6/chat &breload&6 - &cPrzeladowuje skrypt" send "&a-------&7[&6&lCHAT&7]&a-------" stop arg 1 is "reload": execute console command "/sk reload all" send "&7[&6&lCHAT&7]&a Pomyslnie przeladowano skrypt!" arg 1 is "wycisz": arg 2 is not set: send "&7[&6&lCHAT&7]&c Uzyj: /chat pomoc" stop arg 2 is set: if arg 2 parsed as player is online: {wyciszony.%arg 2%} is 0: set {wyciszony.%arg 2%} to 1 execute console command "/pex user %arg 2% add wyciszony.spam" send "&7[&6&lCHAT&7]&c Gracz %arg 2% zostal wyciszony!" wait 10 minute send "&7[&6&lCHAT&7]&a Gracz %arg 2% znowu moze pisac!" to all players execute console command "/pex user %arg 2% remove wyciszony.spam" stop {wyciszony.%arg 2%} is 1: set {wyciszony.%arg 2%} to 0 send "&7[&6&lCHAT&7]&a Gracz %arg 2% znowu moze pisac!" to all players execute console command "/pex user %arg 2% remove wyciszony.spam" stop arg 1 is "on": {chat} is true: send "&7[&6&lCHAT&7]&c Chat jest juz wlaczony!" stop {chat} is false: 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": {chat} is false: send "&7[&6&lCHAT&7] &cChat juz jest wylaczony!" stop {chat} is true: 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 "GUI": open chest with 3 rows named "&7[&6&lCHAT&7]" to player wait 1 tick format slot 10 of player with 1 of 35:5 named "&2&lWlacz" to run [execute player command "/chat on"] format slot 13 of player with 1 of 35:0 named "&f&lWyczysc" to run [execute player command "/chat clear"] format slot 16 of player with 1 of 35:14 named "&4&lWylacz" to run [execute player command "/chat off"] 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 "&7[&6&lCHAT&7] &cNa chacie mozna pisac co 5 sekund!" cancel event stop else: set {waitstatus.%player%} to now on chat: player has permission "*": stop player has permission "wyciszony.spam": cancel event send "&7[&6&lCHAT&7] &cNie mozesz pisac poniewaz jestes wyciszony!"