Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Nazwa: WERTSKRIPT_CHAT
- #Wersja: 1.0 BETA
- #Autor: WERTEŁ
- #Regulamin:
- #Zakaz podszywania się pod autora
- #Zakaz sprzedawania skryptu
- #Zakaz edycji kodu skryptu (NIE DOTYCZY WIADOMOŚCI)
- variables: #Nie ruszaj
- {slowmode} = true
- {spam.%player%} = true
- #Wiadomości i ustawienia czasu
- options:
- Join: &7%player% &cWbil na serwer #Wiadomosc przy wejsciu na serwer
- Leave: &7%player% &cOpuscil nasz serwer #Wiadomosc przy wyjsciu z serwera
- slowmodetime: 5 #Co ile sekund gracz moze pisac ustaw 0 jesli bez limitu
- chatc: &7Chat zostal wyczyszczony przez: &c%player%
- bc: &7[&cTwojSerwer.pl&7] #Tag bc (ogloszenia)
- on join:
- set join message to "{@Join}"
- on quit:
- set leave message to "{@Leave}"
- command /bc [<text>]:
- permission: WERTSKRIPT.CHAT
- trigger:
- broadcast "{@bc} &7%coloured arg%"
- on chat:
- 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 "I" with "i" 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
- replace all "X" with "x" in the message
- stop
- on chat:
- if {slowmode} is true:
- if player don't have permission "WERTSKRIPT.CHAT":
- if {spam.%player%} is true:
- cancel event
- send "&7Nastepna wiadomosc bedziesz mogl wyslac za: &c{@slowmodetime} &7sekund!"
- set {spam.%player%} to true
- wait {@slowmodetime} seconds
- set {spam.%player%} to false
- stop
- command /chat [<text>]:
- permission: WERTSKRIPT.CHAT
- permission message: &cNie masz dostepu do tej komendy
- trigger:
- if arg 1 is not set:
- send "&7Wszyskie komendy znajdziesz pod: &c/chat pomoc"
- stop
- if arg 1 is "pomoc":
- send "&7/chat c &8- &cCzysci chat."
- send "&7/chat info &8- &cInformacje o skripcie."
- stop
- if arg 1 is "c" or "wyczysc":
- loop 100 times:
- broadcast ""
- broadcast "{@chatc}"
- stop
- if arg 1 is "info":
- send "&7Nazwa: &cWERTSKRIPT_CHAT"
- send "&7Wersja: &c1.0 BETA"
- send "&7Autor: &cWERTEL"
- stop
Advertisement
Add Comment
Please, Sign In to add comment