Nametag problem

  • 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 comminuty!

    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!

Status
Not open for further replies.
D

Deleted member 11521

Hello there!

I downloaded a /nick skript and there is a problem with the name tag. Also see pictures below:

My view: http://prntscr.com/t18jfk
Alt account view: http://prntscr.com/t18kdi

Skript Version: 2.2 (fixes V8b)
MC Version: 1.8.8
Addons: Skript, MundoSK, Skellett, SkQuery, skRayFall, skript-mirror, skript-ping-0.2, SkStuffe, TuSKe

Searched in docs? yes
Searched in forums? yes

Code:
Code:
options:
    PREFIX: &8[&5NICKNAME&8]
#    RangPrefix: &a

on chat:
    if {NickName.%player%} is set:
        cancel event
        broadcast "&aSpieler &8┃ &a%{NickName.%player%}% &8» &7%message%" to player's world

every 2 seconds:
    loop all players:
        if {NickName.%loop-player%} is set:
            set {_Nickname} to {NickName.%loop-player%}
            set loop-player's tab name to "&aSpieler &8┃ &a%{_Nickname}%"
            set loop-player's nametag to "&aSpieler &8┃ %{_Nickname}%"
           
command /nick:
    permission: Nick
    permission message: {@PREFIX} &cDu hast dafür keine Rechte.
    trigger:
        if {NickName.%player%} is not set:
# execute console command "nm prefix %player% &f" #
            set {_skin} to Steve
            set {_Nickname} to a random element out of {NickList::*}
            set {Nick.Used.%player%} to true
            set {NickName.%player%} to {_Nickname}
            wait 2 ticks
            set player's tab name to "&aSpieler &8┃ &a%{_Nickname}%"
            set player's nametag to "&aSpieler &8┃ %{_Nickname}%"
            set player's display name to "&aSpieler &8┃ &a%{_Nickname}%"
            send " "
            send "{@PREFIX} &7Dein Nickname lautet: &e%{_Nickname}%"
            send " "
            set player's displayed skin to {_skin}
            set {_rang} to "&aSpieler"
            set {_rank} to "&a"
            set {_p} to player
            execute console command "nte player %{_p}% prefix %{_rang}% &8┃ %{_rank}%"
            execute console command "nte player %{_p}% priority 19"
        else:
            send "{@PREFIX} &7Du bist bereits genickt."
           
command /unnick:
    permission: Nick
    permission message: {@PREFIX} &cDu hast dafür keine Rechte.
    trigger:
        if {NickName.%player%} is set:
            reset player's displayed skin
            send "{@PREFIX} &7Du hast deinen Nickname entfernt."
            delete {NickName.%player%}
            delete {Nick.Used.%player%}
            set player's tab name to "%player%"
            set player's nametag to "%player%"
            set player's display name to "%player%"
            getRank(player)
        else:
            send "{@PREFIX} &7Du bist nicht genickt."
       
on load:
    clear {NickList::*}
    add "ABC" to {NickList::*}

Works in tablist an chat but not in nametag.
[doublepost=1592380419,1592379698][/doublepost]Tried it with Tablisknu, still doesn't works :/
[doublepost=1592406710][/doublepost]push
[doublepost=1592756110][/doublepost]push
 
I'm not sure what the problem is, all I know is that the name tag isn't working.

Can you explain to me what the pictures show, who is nicked, and what the nick is supposed to be?
 
At the first picture you can see my nametag from my view when I'm nicked and the second picture shows my nametag from the view of another player. I'm (PC1up) nicked and it should set my nickname to for e.g to "ABC" and not "ABCPC1up".
[doublepost=1592836442,1592836318][/doublepost]Okay no wait now only my nametag prefix is changed but my nametag name is still "PC1up" and not "ABC".
 
What did you change when it changed from ABCPC1up to Tag | PC1up?
 
I think I changed the "set player's nametag" to "set player's default nametag". That should it be
 
Status
Not open for further replies.