I have a custom staff chat Skript that I have made, but I want to make sure that if a staff member types in there, the person does not receive a notification saying their name was mentioned.
Chat Ping Skript
Anyone familiar with this kind of thing at all? I'm still very new with Skript and I am looking for support on this.
Posted by: james.kevin from the skUnity Discord. View the thread on skUnity Discord here
Chat Ping Skript
code_language.skript:
on chat:
if {staffchat::toggle::%player's uuid%} or (metadata tag "vanished" of player) is true:
stop
else:
loop all players:
if message contains "%loop-player%":
replace all "%loop-player%" with "&b&l@%loop-player%&r" in message
play sound "block.note_block.pling" with volume 1 for loop-player
**Staff Chat Command Skript**
command /staffchat [<text>]:
aliases: /sc, /schat, /mc, /modchat, /adminchat, /ch, /st, /ac
permission: sc.use
permission message: {@no_perm}
trigger:
if arg-1 is not set:
send "&7Please input a message to send to other staff!"
if arg-1 is set:
loop all players:
if loop-player has permission "sc.use":
send "&8[&aStaffChat&8] &6%player%: &b%arg-1%" to loop-player
Anyone familiar with this kind of thing at all? I'm still very new with Skript and I am looking for support on this.
Posted by: james.kevin from the skUnity Discord. View the thread on skUnity Discord here