variables: {przeklenstwa.chat} = true {faq.chat} = true {chat.stan} = true {mute.chat} = 0 on chat: if player don't have permission "chat.przeklenstwa": if {przeklenstwa.chat} is true: message contains "cipa" or "kurwa" or "japierdole" or "pierdole" or "jebac" or "jebany" or "chuj" or "huj" or "suka" or "kutas": execute console command "/mute %player% %{mute.chat}%min" cancel event loop all players: loop-players has permission "chat.przeklenstwa": message "&9[Chat] &e&l%player%: &e%message%" to loop-players if sender is player: if {faq.chat} is true: message contains "jak stworzyc wyspe" or "jak zrobic wyspe" cancel event send "&7[&6&lFAQ&7] &e&l/is create" to player if {chat.stan} is false: if player has permission "chat.pisz" or "chat.*": stop trigger else: cancel event send "&6&lChat jest wylaczony." stop trigger options: off: &e&lChat zostal &6&lWYLACZONY! on: &e&lChat zostal &6&lWLACZONY! clear: &e&lChat zostal &6&lWYCZYSZCZONY &e&lprzez &6&l%player%! siebie: &e&lChat zostal &6&lWYCZYSZCZONY &e&ldla &6&l%player%&e&l! nopermission: &cNie masz permisji do tej komendy. chat-jest-juz-off: &6&lChat &e&ljest juz wylaczony&6&l. chat-jest-juz-on: &6&lChat &e&ljest juz wlaczony&6&l. command /chat [] [] []: permission: chat.* permission message: {@nopermission} trigger: if executor is player: if arg 1 is not set: open chest with 1 rows named "&6&lCHAT &7(&e&lGUI&7)" to player wait 2 ticks format slot 0 of player with 1 of red clay named "&6&lWYLACZ CHAT" to run [execute player command "chat wylacz"] format slot 1 of player with 1 of light green clay named "&6&lWLACZ CHAT" to run [execute player command "chat wlacz"] format slot 2 of player with 1 of red clay named "&6&lWYLACZ PRZEKLENSTWA" to run [execute player command "chat off przeklenstwa"] format slot 3 of player with 1 of light green clay named "&6&lWLACZ PRZEKLENSTWA" to run [execute player command "chat on przeklenstwa"] format slot 4 of player with 1 of red clay named "&6&lWYLACZ FAQ" to run [execute player command "chat off faq"] format slot 5 of player with 1 of light green clay named "&6&lWLACZ FAQ" to run [execute player command "chat on faq"] format slot 6 of player with 1 of yellow clay named "&6&lWYCZYSC CHAT DLA WSZYSTKICH" to run [execute player command "chat wyczysc"] format slot 7 of player with 1 of orange clay named "&6&lWYCZYSC CHAT DLA SIEBIE" to run [execute player command "chat siebie"] format slot 8 of player with 1 of book named "&6&lINFO I CHAT'CIE" to close then run [execute player command "chat info"] if arg 1 is "wylacz": if {chat.stan} is false: send "{@chat-jest-juz-off}" stop set {chat.stan} to false broadcast "{@off}" stop if arg 1 is "wlacz": if {chat.stan} is true: send "{@chat-jest-juz-on}" stop set {chat.stan} to true broadcast "{@on}" stop if arg 1 is "wyczysc": loop 100 times: broadcast "" broadcast "{@clear}" stop if arg 1 is "siebie": loop 100 times: send "" send "{@siebie}" stop if arg 1 is "info": send "&6&m=========================" to player send "&7&l INFO" to player send "&6&m=========================" to player send "&2&l ChatManager" to player if {faq.chat} is true: send "&aFAQ: &2wlaczone" to player if {faq.chat} is false: send "&aFAQ: &2wylaczone" to player if {przeklenstwa.chat} is true: send "&aPRZEKLENSTWA: &2wlaczone" to player if {przeklenstwa.chat} is false: send "&aPRZEKLENSTWA: &2wylaczone" to player send "&aCZAS MUTE: &2%{mute.chat}%min" to player send "&6&m=========================" to player send "&aChatManager v1.1 by &2&lDrBooker" if arg 1 is "off": if arg 2 is "faq": set {faq.chat} to false send "&e&lPomyslnie wylaczono &6&lFAQ&e&l." if arg 2 is "przeklenstwa": set {przeklenstwa.chat} to false send "&e&lPomyslnie wylaczono &6&lPRZEKLENSTWA&e&l." if arg 1 is "on": if arg 2 is "faq": set {faq.chat} to true send "&e&lPomyslnie wlaczono &6&lFAQ&e&l." if arg 2 is "przeklenstwa": set {przeklenstwa.chat} to true send "&e&lPomyslnie wlaczono &6&lPRZEKLENSTWA&e&l." if arg 1 is "ustaw": if arg 2 is "mute": if arg 3 is set: set {mute.chat} to argument 3 send "&e&lUstawiles mute'y na &6&l%{mute.chat}%min&e&l." if arg 3 is not set: send "&e&lUstaw czas!" if arg 1 is "help": send "&6&m=========================" to player send "&7&l ChatManager" to player send "&6&m=========================" to player send "&a/czas &7<----- &2otwiera gui z chat'em." to player send "&a/czas ustaw mute &7 <----- &2ustawia czas auto-mute." to player