command sc [<text>]:
aliases: /staffchat
permission: op
trigger:
arg-1 is not set:
{sc.%player%} is set:
delete {sc.%player%}
send "&cStaff Chat Disabled!"
else:
set {sc.%player%} to true
send "&aStaff Chat Enabled!"
else:
send "&bSC - %{suffix.%player's uuid%}% %player%&f: %colored arg-1%" to all ops
chat:
{sc.%player%} is set:
cancel event
send "&bSC - %{suffix.%player's uuid%}% %player%&f: %colored message%" to all ops
with this skript, basically if you type /sc, itll toggle your staff chat on and off and if u type /sc with a message after it, it will send a message with staff chat to all other operators, if you dont want it with ops and want it with a permission do
send "Message Here" to all players where [input has permission "permission here"]