What's wrong with this? It doesn't send the message.
It works just if I do ;broadcast; instead of ;send "%{nickname.%player%}% > &7%coloured message%" to loop-player;
Code:
on chat:
cancel event
if "%region at player%" is "<none>":
loop all players:
if "%region at loop-player%" is "%region at player%":
if {colors} is not set:
set {colors} to 1
if {colors} is 1:
if {nickname.%player%} is not set:
send "%player% > &f%coloured message%" to loop-player
set {colors} to 2
stop
else if {nickname.%player%} is set:
send "%{nickname.%player%}% > &f%coloured message%" to loop-player
set {colors} to 2
stop
else if {colors} is 2:
if {nickname.%player%} is not set:
send "%player% > &7%coloured message%" to loop-player
set {colors} to 1
stop
else if {nickname.%player%} is set:
send "%{nickname.%player%}% > &7%coloured message%" to loop-player
set {colors} to 1
stop
Last edited: