Untitled
unknown
plain_text
a year ago
2.7 kB
5
Indexable
on chat:
cancel event
set {_a} to message
set {_members::*} to {clan::%{clan::%player's uuid%}%::members::*}
loop {_members::*}:
add loop-value parsed as player to {_clan::members::*}
remove {clan::%{clan::%player's uuid%}%::owner} parsed as player from {_members::*}
set {_z} to "<tooltip:%nl% &4&lCLAN INFO&r %nl% &fClan Name&7: &e%{clan::%player's uuid%}%%nl% &fClan Owner&7: &b%{clan::%{clan::%player's uuid%}%::owner} parsed as player%%nl% &fClan Members&7: &a%size of {_clan::members::*}%&7%nl% &fClan Tag&7: &f%{clan::%player's uuid%::tag}%%nl%%nl% &7&o%{clan::%{clan::%player's uuid%}%::quote}%%nl%&r>&8(&e%placeholder "voidclans_tag" of player%&8)"
set {_x} to "<tooltip:%nl% &9&lPLAYER INFO&r %nl% &fBalance: &a%{balance::%uuid of player%}%&7%nl% &cKills&7: &c%{kills::%uuid of player%}%&7%nl% &4Deaths&7: &4%{deaths::%uuid of player%}%&7%nl%&r>"
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
if {mutechat} = true:
player is not op
stop
send "&cChat is currently muted!" to player
set {_a} to formatted message
if player's group is "default":
if {chatFormat::%uuid of player%} is not set:
set {chatFormat::%uuid of player%} to "<gray>"
set {_mm} to mini message from "%{chatFormat::%uuid of player%}%%{_a}%"
send formatted hex fixed "%level colored {level::%uuid of player%}% %{_z}%&r %{_x}%%player's prefix%%{nickname::%uuid of player%}%&r %player's tag% &8» &7%colored {_mm}%" to all players
else:
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 "%level colored {level::%uuid of player%}% %{_z}%&r %{_x}%%player's prefix%%{nickname::%uuid of player%}%&r %player's tag% &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