so, i wanted to make a skript for a server with my friends, imagine a faction server.
i got to work, but it wont work as i thought,
but it will not change the prefix. even when i do /joinalpha, it will still show the Sigma prefix.
can anyone help?
i got to work, but it wont work as i thought,
Code:
on chat:
if {team.%uuid of player%} is set:
cancel event
Broadcast "&b[SIGMA] &f%player% >> &f%message%"
on chat:
if {team.%uuid of player%} is not set:
cancel event
Broadcast "&b[ALPHA] &f%player% >> &f%message% "
command /joinsigma:
trigger:
if {team.%uuid of player%} is not set:
send "You just joined team Sigma!"
set {team.%uuid of player%} to true
else:
send "You already are in team Sigma!"
command /joinalpha:
trigger:
if {team.%uuid of player%} is set:
send "You just joined team Alpha!"
set {team.%uuid of player%} to false
else:
send "You already are in team Alpha!"
but it will not change the prefix. even when i do /joinalpha, it will still show the Sigma prefix.
can anyone help?
Attachments
Last edited by a moderator: