variables: {chat} = true command /chat []: permission: chat.skript permission message: &cNie masz permissi! trigger: if arg-1 is not set: send " &8- &f/chat " to player stop if arg-1 is "clear": loop 256 times: broadcast "" # send " " to all players broadcast "&aCzat zostal wyczyszczony przez: &2%player%" stop if arg-1 is "on": if {chat} is true: send "&cChat jest juz wlaczony!" to player else: set {chat} to true send "&aCzat zostal wlaczony!" to player stop if arg-1 is "off": if {chat} is false: send "&cChat jest juz wylaczony!" to player else: set {chat} to true send "&aCzat zostal wylaczony!" to player stop on chat: if {chat} is true: replace all ".ench" and ".pl", ".com" with "***" in the message stop else: cancel event send "&cCzat jest obecnie wylaczony!" to player