Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Dostepne permissje do skryptu/komendy :
- # chatg.on - komenda /chat on
- # chatg.off - komenda /chat off
- # chatg.clear - komenda /chat clear
- # chatg.auto - komenda /char aon/off
- # chatg.write - pozwala na pisanie przy wylaczonym czacie
- # chatg.write2 - pozwala na pisanie zawsze i ciągle
- options:
- time: 5 # Co ile minut ma byc czyszczony chat
- variables:
- {chat} = true
- {auto} = true
- command /chat [<text>]:
- trigger:
- if arg 1 is not set:
- send "&8######## &1&lChatG &8######## "
- send "&3/chat on &7- wlacza chat"
- send "&3/chat off &7- wylacza chat"
- send "&3/chat clear &7- czysci chat"
- send "&3/chat aon &7- wlacza auto chat"
- send "&3/chat aoff &7 wylacza auto chat"
- send "&8######## &1&lChatG &8######## "
- if arg 1 is "on":
- if {chat} is false:
- if player has permission "chatg.on":
- set {chat} to true
- broadcast ""
- broadcast " [ChatG]"
- broadcast "&7Chat zostal &aWlaczony"
- broadcast ""
- stop
- else:
- send "&7Nie masz &auprawnienia&7 do tej komendy !"
- stop
- else:
- send "&7Chat jest juz &aWlaczony"
- stop
- if arg 1 is "off":
- if {chat} is true:
- if player has permission "chatg.off":
- set {chat} to false
- broadcast ""
- broadcast " [ChatG]"
- broadcast "&7Chat zostal &aWylaczony"
- broadcast ""
- stop
- else:
- send "&7Nie masz &auprawnienia&7 do tej komendy !"
- stop
- else:
- send "&7Chat jest juz &aWylaczony"
- stop
- if arg 1 is "clear":
- if player has permission "chatg.clear":
- loop 100 times:
- message "" to all players
- send "Chat został wyczyszczony przez &c %name of player%&a!" to all players
- stop
- else:
- send "&7Nie masz &auprawnienia&7 do tej komendy !"
- stop
- if arg 1 is "aon":
- if player has permission "chatg.auto":
- set {auto} to true
- send "[& Auto czyszczenie chatu uruchomione!"
- stop
- else:
- send "[ChatG]&aNie masz uprawnien aby to robic!"
- if arg 1 is "aoff":
- if player has permission "chatg.auto":
- set {auto} to false
- send "&aAuto czyszczenie chatu wylaczone!"
- else:
- send "[ChatG]&aNie masz uprawnien aby to robic!"
- every {@time} minutes:
- if {auto} is true:
- loop 100 times:
- message "" to all players
- send "[ChatG]&aChat zostal wyczyszczony &cAutomatycznie&a!" to all players
- on chat:
- if {chat} is false:
- if player has permission "chatg.write":
- stop
- else:
- cancel event
- send "&7Chat jest aktualnie &aWylaczony!"
- stop
- else:
- if player has permission "chatg.write2":
- stop
- set {_waited} to difference between {chat.%player%.spam} and now
- if {_waited} is less than 3 real seconds seconds:
- send "&7Nastepna&a wiadomosc&7 bedziesz mogl wyslac za &c3 sekundy"
- cancel event
- stop
- set {chat.%player%.spam} to now
- stop
- on chat:
- replace all "kurwa" with "***" in the message
- replace all "chuj" with "***" in the message
- replace all "pierdolony" with "***" in the message
- replace all "pedal" with "***" in the message
- replace all "gej" with "***" in the message
- replace all "suka" with "***" in the message
- replace all "cipa" with "***" in the message
- replace all "dupa" with "***" in the message
- replace all "pierdolona" with "***" in the message
- replace all "pojebalo" with "***" in the message
- replace all "zajebe cie" with "***" in the message
- replace all "debil" with "***" in the message
- on chat:
- if player is not op:
- replace all "A" with "a" in the message
- replace all "B" with "b" in the message
- replace all "C" with "c" in the message
- replace all "D" with "d" in the message
- replace all "E" with "e" in the message
- replace all "F" with "f" in the message
- replace all "G" with "g" in the message
- replace all "H" with "h" in the message
- replace all "I" with "i" in the message
- replace all "J" with "j" in the message
- replace all "K" with "k" in the message
- replace all "L" with "l" in the message
- replace all "M" with "m" in the message
- replace all "N" with "n" in the message
- replace all "O" with "o" in the message
- replace all "P" with "p" in the message
- replace all "R" with "r" in the message
- replace all "S" with "s" in the message
- replace all "T" with "t" in the message
- replace all "U" with "u" in the message
- replace all "W" with "w" in the message
- replace all "Y" with "y" in the message
- replace all "Z" with "z" in the message
Advertisement
Add Comment
Please, Sign In to add comment