Add files via upload
This commit is contained in:
48
clearchat.sk
48
clearchat.sk
@@ -6,17 +6,11 @@
|
|||||||
#==============================================
|
#==============================================
|
||||||
options:
|
options:
|
||||||
# How long the chat clear will be (200 for Vanilla 1000 for Clients with longer scrolling)
|
# How long the chat clear will be (200 for Vanilla 1000 for Clients with longer scrolling)
|
||||||
Length: 1000
|
Length: 100
|
||||||
|
|
||||||
# Prefix
|
# Prefix
|
||||||
Prefix: &8[&5CC&b+&8]
|
Prefix: &8[&5CC&b+&8]
|
||||||
|
|
||||||
# (true or false) swear filter state
|
|
||||||
Swear: true
|
|
||||||
|
|
||||||
# (true or false) spam filter state
|
|
||||||
Spam: true
|
|
||||||
|
|
||||||
# Notification Players
|
# Notification Players
|
||||||
NotifPlayer: &b&lChat has been cleared %newline%&b&lProfanity is not allowed
|
NotifPlayer: &b&lChat has been cleared %newline%&b&lProfanity is not allowed
|
||||||
|
|
||||||
@@ -24,15 +18,18 @@ options:
|
|||||||
NotifStaff: &2&l%player% &a&lCleared the chat
|
NotifStaff: &2&l%player% &a&lCleared the chat
|
||||||
|
|
||||||
# Swears blocked (Can be bypassed VERY EASY) format moment
|
# Swears blocked (Can be bypassed VERY EASY) format moment
|
||||||
block: "fuck" or "fvck" or "fck" or "fuk" or "f*ck" or "bitch" or "b1tch" or "b*tch" or "b1ch" or "bish" or "b1sh" or "slut" or "hoe" or "h0e" or "shit" or "sh1t" or "sh*t" or "nigger" or "n1gger" or "n1gg3r" or "nigg3" or "nigg" or "niger" or "n1ger" or "n1gger" or "n1gga" or "n1gg@" or "nigg@" or "cum" or "semen" or "tits" or "titties" or "retard" or "gay" or "g@y" or "r3t@rd" or "ret@rd" or "r3tard" or "cream" or "balls" or "n1g" or "blackie" or "fuc" or "nega" or "negar" or "finger" or "suck" or "scum" or "sc@m" or "sc*m" or "fake" or "f@ke" or "minge" or "spaz" or "shag" or "pussy" or "1984" or "penis" or "p3n1s" or "pen1s" or "p3n1s"
|
|
||||||
|
|
||||||
command /cc:
|
command /cc:
|
||||||
aliases: /chatclear, /cchat
|
aliases: /chatclear, /cchat
|
||||||
permission: chatclear.use
|
permission: chatclear.use
|
||||||
trigger:
|
trigger:
|
||||||
loop {@Length} times:
|
loop {@Length} times:
|
||||||
send " " to all players where [input doesn't have permission "chatclear.use"]
|
send "&0." to all players where [input doesn't have permission "chatclear.use"]
|
||||||
send "." to all players where [input doesn't have permission "chatclear.use"]
|
send "&0 " to all players where [input doesn't have permission "chatclear.use"]
|
||||||
|
send "&0 " to all players where [input doesn't have permission "chatclear.use"]
|
||||||
|
send "&0 " to all players where [input doesn't have permission "chatclear.use"]
|
||||||
|
send "&0 " to all players where [input doesn't have permission "chatclear.use"]
|
||||||
|
send "&0 " to all players where [input doesn't have permission "chatclear.use"]
|
||||||
send "&6&l&m------------------------------------" to all players
|
send "&6&l&m------------------------------------" to all players
|
||||||
send "{@Prefix} {@NotifPlayer}" to all players where [input doesn't have permission "chatclear.use"]
|
send "{@Prefix} {@NotifPlayer}" to all players where [input doesn't have permission "chatclear.use"]
|
||||||
send "{@Prefix} {@NotifStaff}" to all players where [input has permission "chatclear.use"]
|
send "{@Prefix} {@NotifStaff}" to all players where [input has permission "chatclear.use"]
|
||||||
@@ -52,23 +49,18 @@ command /clearchatinfo:
|
|||||||
|
|
||||||
# Prototype for automute if bypassing other spam filters
|
# Prototype for automute if bypassing other spam filters
|
||||||
on chat:
|
on chat:
|
||||||
set {cm.%player%} to message
|
set {_team} to placeholder "betterTeams_tag" of player
|
||||||
if {@Spam} is true:
|
if placeholder "betterTeams_tag" of player is not set:
|
||||||
if player does not have permission "clearchat.use":
|
if group of player is "knight" or "booster" or "bishop" or "rook" or "queen" or "king":
|
||||||
if {lm.%player%} = message:
|
set the chat format to "&r%hexfix(player's prefix)%%player%%hexfix(player's suffix)% &8[&7%player's max health% &c❤&8] &8➡<white> %message%"
|
||||||
send "&c[Anti Spam] &a%player%&7: %message%" to all players where [input has permission "chatclear.use"]
|
|
||||||
cancel event
|
|
||||||
send "&c&lHEY! &r&7We do not tolorate spamming in chat. Please decrease your use of repeated messages. &lBypassing this in any capacity will get you muted"
|
|
||||||
else:
|
else:
|
||||||
set {lm.%player%} to message
|
set the chat format to "&r%hexfix(player's prefix)%%player%%hexfix(player's suffix)% &8[&7%player's max health% &c❤&8] &8➡&7 %message%"
|
||||||
on chat:
|
else:
|
||||||
set {cm.%player%} to message
|
if group of player is "knight" or "booster" or "bishop" or "rook" or "queen" or "king":
|
||||||
if {@Swear} is true:
|
set the chat format to "&8[&7%{_team}%&8] &r%hexfix(player's prefix)%%player%%hexfix(player's suffix)% &8[&7%player's max health% &c❤&8] &8➡<white> %message%"
|
||||||
if player does not have permission "clearchat.use":
|
else:
|
||||||
replace all " " in {cm.%player%} with ""
|
set the chat format to "&8[&7%{_team}%&8] &r%hexfix(player's prefix)%%player%%hexfix(player's suffix)% &8[&7%player's max health% &c❤&8] &8➡&7 %message%"
|
||||||
replace all "." in {cm.%player%} with ""
|
|
||||||
if {cm.%player%} contains {@block}:
|
function hexfix(f: text) :: text:
|
||||||
send "&c[Antiswear Chat] &a%player%&7: %message%" to all players where [input has permission "chatclear.use"]
|
return formatted (join (regex split (join (regex split {_f} by "(?<=(&##([a-fA-f0-9]{6})))") by ">") by "&##(?=([a-fA-f0-9]{6}))") by "<##")
|
||||||
cancel event
|
|
||||||
send "&c&lHEY! &r&7We do not tolorate swearing in chat. Please decrease your use of profanity. &lBypassing this in any capacity will get you muted"
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user