Professional Documents
Culture Documents
Gangs
Gangs
Gangs
Prefix: &8[&2Void&aGangs&8]
GangChatFormat: &d[%{gang::prefix::%{gang::%player's uuid%}%}%&d] &b%player's
display name% &e[GANGCHAT] &8&l» &6%message%
on chat:
if metadata "prefix" of player is true:
cancel event
if message is "stop":
send "&cCancelled!"
set metadata "prefix" of player to false
set {_text} to colored message
replace all "&k" in {_text} with ""
set {_num} to the length of (uncolored {_text})
if {_num} > 13:
send " "
send "{@Prefix}&e: &cCould not set the prefix- it was too long."
send " "
set metadata "prefix" of player to false
stop
loop {gangs::*}:
if (colored {gang::prefix::%loop-value%}) = (colored {_text}):
send " "
send "{@Prefix}&e: &cCould not set the prefix- it has
already been taken! &4&lImpersonating another gang will lead to punishment."
send " "
set metadata "prefix" of player to false
stop