Okay, So i have a JSON script.
How do I make it so if i'm the guy who wrote %message%, I Can't click on my name so it doesn't suggest "/msg %player% for me?
How do I make it so if i'm the guy who wrote %message%, I Can't click on my name so it doesn't suggest "/msg %player% for me?
code_language.skript:
on chat:
player has permission "owner.user"
cancel event
set {_to} to "%player%"
set {_msg} to "test ||ttp:description ||sgt:/msg %player% || &6%player%&2: %message%||sgt:/msg %player% "
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}
Last edited: