Untitled
unknown
plain_text
a year ago
1.1 kB
6
Indexable
on chat:
cancel event
set {_a} to message
if {nickname::%uuid of player%} is not set:
set {nickname::%uuid of player%} to player's name
loop all players:
if {_a} contains loop-player's name:
if {notifications::%loop-player's uuid%} is false:
wait 1 tick
send action bar with prefix "This user has chat notifications turned off!" to player
else:
play sound "entity_experience_orb_pickup" to loop-player
if {cooldown::%player's name%} is true:
send with prefix "&cYou are on chat cooldown!"
stop
set {_a} to formatted message
if {chatFormat::%uuid of player%} is not set:
set {chatFormat::%uuid of player%} to "<white>"
set {_mm} to mini message from "%{chatFormat::%uuid of player%}%%{_a}%"
send formatted hex fixed "%{nickname::%uuid of player%}%&r &8» &f%colored {_mm}%" to all players
set {cooldown::%player's name%} to true
wait 0.5 seconds
clear {cooldown::%player's name%}Editor is loading...
Leave a Comment