Solved Problem w prefixes

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Mar 20, 2024
4
0
1
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,
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?
1710966694770.png
 

Attachments

  • 1710966583253.png
    1710966583253.png
    2.9 KB · Views: 153
Last edited by a moderator:
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!"
            delete {team.%uuid of player%}
        else:
            send "You already are in team Alpha!"

deleting it will make it not set but if you set it to false it still is set ofc
 
  • Like
Reactions: Rubystarling605