command /prefix <text> <text>:
trigger:
set {Prefix::%player's uuid%} to arg-1
set {Color::%player's uuid%} to arg-2
on chat:
set {_message} to message
set {_player} to player
cancel event
set {_test} to "&%{Color::%player's uuid%}%"
broadcast "%{_test}%%{Prefix::%player's uuid%}% &f%{_player}%: %{_message}%"
For some reason if I type /prefix TEST <red> it doesn't work instead it just says <red>TEST Sweballs77: Hello and even if I do /prefix Test &a It just sends &aTest Sweballs77: Hello. Only if I set the {_test} like this: set {_test} to "<red>" it will say the prefix in red. Does anyone know how I can fix this so that I can type in the color of my prefix in chat?
trigger:
set {Prefix::%player's uuid%} to arg-1
set {Color::%player's uuid%} to arg-2
on chat:
set {_message} to message
set {_player} to player
cancel event
set {_test} to "&%{Color::%player's uuid%}%"
broadcast "%{_test}%%{Prefix::%player's uuid%}% &f%{_player}%: %{_message}%"
For some reason if I type /prefix TEST <red> it doesn't work instead it just says <red>TEST Sweballs77: Hello and even if I do /prefix Test &a It just sends &aTest Sweballs77: Hello. Only if I set the {_test} like this: set {_test} to "<red>" it will say the prefix in red. Does anyone know how I can fix this so that I can type in the color of my prefix in chat?