I am currently working on json prefixes for my Server. So whenever you type something in chat, it will do tellraw (as console) and if you hover over the prefix, it will say rank description.
https://forums.skunity.com/resources/json-sk.23/
Before This, i just had "on chat:" for my Anti Spam.
It will be really hard now to block spam in chat.
Does anyone know how i can make anti spam, anti swear in this script?
code_language.skript:
on chat:
cancel event
player has permission "admin"
set {_to} to "%player%"
set {_msg} to "test||ttp:test%nl%test|| &5%player%&8 %message%"
json({_to}, {_msg})
code_language.skript:
function json(to: text, msg: text, color: boolean = true):
set {_msg} to jsonFormat({_msg}, {_color})
execute console command "/tellraw @a %{_msg}%"
if {@debug} is true:
set {_player} to {_to} parsed as offline player
if {_player} is online:
send uncolored {_msg} to {_player}
Before This, i just had "on chat:" for my Anti Spam.
It will be really hard now to block spam in chat.
Does anyone know how i can make anti spam, anti swear in this script?