Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##########################################
- # Bg-chat #
- # Zezwalam na kopie #
- # Pozwalam na podszywanie sie pod autora#
- # Nie pozwalam na zmienianeie uprawnien i wiadomosci#
- # v0.1(bedzie większy update) #
- # autor : xBG #
- ##########################################
- # Dostepne permissje do skryptu/komendy :
- # xbg.chat.on - komenda /chat on
- # xbg.chat.off - komenda /chat off
- # xbg.chat.clear - komenda /chat clear
- # xbg.chat.auto - komenda /char aon/off
- # xbg.chat.write - pozwala na pisanie przy wylaczonym czacie
- # xbg.chat.write2 - pozwala na pisanie zawsze i ciągle
- # xbg.chat.caps - pozwala pisac duzymi literami
- # xbg.chat.help - komeda /chat
- #
- options:
- time: 30 # Co ile minut ma byc czyszczony chat
- variables:
- {chat} = true
- {auto} = true
- # KOD (taki fajny)
- command /chat [<text>]:
- trigger:
- if arg 1 is not set:
- if player has permission "xbg.chat.help"
- send "&8######## &4BG-chat &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 "&3/chat mute &7 - wycisza gracza"
- send "&8######## &4BG-chat &8######## "
- if arg 1 is "on":
- if {chat} is false:
- if player has permission "xbg.chat.on":
- set {chat} to true
- broadcast ""
- broadcast "&2» &6Chat zostal &aWlaczony"
- broadcast ""
- stop
- else:
- send "&7Nie masz &auprawnienia&7 do tej komendy!"
- stop
- else:
- send "&6Chat jest juz &aWlaczony"
- stop
- if arg 1 is "off":
- if {chat} is true:
- if player has permission "xbg.chat.off":
- set {chat} to false
- broadcast ""
- broadcast "&2» &6Chat zostal &aWylaczony"
- broadcast ""
- stop
- else:
- send "&7Nie masz &auprawnienia&7 do tej komendy!"
- stop
- else:
- send "&6Chat jest juz &aWylaczony"
- stop
- if arg 1 is "clear":
- if player has permission "xbg.chat.clear":
- loop 100 times:
- message "" to all players
- send "&2BG-chat» &6Chat 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 "xbg.chat.auto":
- set {auto} to true
- send "&6Auto czyszczenie chatu uruchomione!"
- stop
- else:
- send "&2BG-chat» Nie masz uprawnien aby to robic!"
- if arg 1 is "aoff":
- if player has permission "xbg.chat.auto":
- set {auto} to false
- send "&2BG-chat» &6Auto czyszczenie chatu wylaczone!"
- else:
- send "&2BG-chat» Nie masz uprawnien aby to robic!"
- if arg 1 is "wycisz" or "mute":
- if player has permission "xbg.chat.mute":
- if arg 2 is set:
- if {xbg.chat.mute::%name of arg 2%} is false:
- set {xbg.chat.mute::%name of arg 2%} to true
- send "&2BG-chat» &cGracz %name of arg 2% zostal wyciszony na czacie!"
- send "&2BG-chat» &cZostales wyciszony na czacie przez &e%name of player%&c." to arg 2
- stop
- if {xbg.chat.mute::%name of arg 2%} is true:
- set {xbg.chat.mute::%name of arg 2%} to false
- send "&2BG-chat» &aGracz %name of arg 2% zostal odciszony na czacie!"
- send "&2BG-chat» &aZostales odciszony na czacie przez &e%name of player%&c." to arg 2
- stop
- else:
- send "&2BG-chat» &cNieprawidlowa komenda! Uzyj - &e/chat wycisz <nick>"
- stop
- every {@time} minutes:
- if {auto} is true:
- loop 100 times:
- message "" to all players
- send "&2BG-chat» &6Chat zostal wyczyszczony &cAutomatycznie&a!" to all players
- on chat:
- if {chat} is false:
- if player has permission "xbg.chat.write":
- stop
- else:
- cancel event
- send "&2BG-chat» &6Chat jest aktualnie &aWylaczony!"
- stop
- else:
- if player has permission "xbg.chat.write2":
- stop
- set {_waited} to difference between {chat.%player%.spam} and now
- if {_waited} is less than 3 real seconds seconds:
- send "&2BG-chat» &6astepna&a wiadomosc&6 bedziesz mogl wyslac za &c3 sekundy"
- cancel event
- stop
- set {chat.%player%.spam} to now
- stop
- on chat:
- if player has permission "xbg.chat.caps"
- 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
- # Kolorowy nick
- command /kolornick [<player>] [<text>]:
- permission: xbg.chat.kolor
- trigger:
- if arg-2 is set:
- send "&2BG-chat» Ustawiles kolor nicku gracza %player-arg%"
- set {kolorchat::%player-arg%} to "%arg-2%"
- if arg-1 is not set:
- send "&2BG-chat» Poprawne uzycie /kolornick {gracz} {kolor}"
- on chat:
- if {kolorchat::%player%} is not set:
- set player's display name to "&7%player%"
- stop
- if {kolorchat::%player%} is "6":
- set player's display name to "&6%player%"
- stop
- if {kolorchat::%player%} is "e":
- set player's display name to "&e%player%"
- stop
- if {kolorchat::%player%} is "9":
- set player's display name to "&9%player%"
- stop
- if {kolorchat::%player%} is "A":
- set player's display name to "&a%player%"
- stop
- if {kolorchat::%player%} is "2":
- set player's display name to "&2%player%"
- stop
- if {kolorchat::%player%} is "3":
- set player's display name to "&3%player%"
- stop
- if {kolorchat::%player%} is "b":
- set player's display name to "&b%player%"
- stop
- if {kolorchat::%player%} is "yt":
- set player's display name to "&8[&4YT&8]&7%player%"
- stop
- # Dodawanie cenuzury
- command /cenzor [<text>] [<text>]:
- trigger:
- if player has permission "xbg.chat.cenzura":
- if arg 1 is not set:
- send "&cBG-cenzura"
- stop
- if arg 1 is set:
- if arg 2 is set:
- set {xbg.chat.cenzura::%arg 1%} to "%arg 2%"
- send "&2BG-chat» Dodales cenzure wyrazu &c%arg 1%&9. Cenzura: &c%arg 2%&9."
- stop
- else:
- send "&2BG-chat» Nieprawidlowa komenda! Uzyj: &2/cenzura [slowo] [cenzura]"
- else:
- send "&2BG-chat» Nieprawidlowa komenda! Uzyj: &2/cenzura [slowo] [cenzura]"
- stop
Advertisement
Add Comment
Please, Sign In to add comment