1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Nametag problem

Discussion in 'Skript' started by PC1up, Jun 17, 2020.

Tags:
Thread Status:
Not open for further replies.
  1. PC1up

    PC1up Member

    Joined:
    Jun 14, 2020
    Messages:
    15
    Likes Received:
    1
    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 (Text):
    1. options:
    2.     PREFIX: &8[&5NICKNAME&8]
    3. #    RangPrefix: &a
    4.  
    5. on chat:
    6.     if {NickName.%player%} is set:
    7.         cancel event
    8.         broadcast "&aSpieler &8┃ &a%{NickName.%player%}% &8» &7%message%" to player's world
    9.  
    10. every 2 seconds:
    11.     loop all players:
    12.         if {NickName.%loop-player%} is set:
    13.             set {_Nickname} to {NickName.%loop-player%}
    14.             set loop-player's tab name to "&aSpieler &8┃ &a%{_Nickname}%"
    15.             set loop-player's nametag to "&aSpieler &8┃ %{_Nickname}%"
    16.            
    17. command /nick:
    18.     permission: Nick
    19.     permission message: {@PREFIX} &cDu hast dafür keine Rechte.
    20.     trigger:
    21.         if {NickName.%player%} is not set:
    22. # execute console command "nm prefix %player% &f" #
    23.             set {_skin} to Steve
    24.             set {_Nickname} to a random element out of {NickList::*}
    25.             set {Nick.Used.%player%} to true
    26.             set {NickName.%player%} to {_Nickname}
    27.             wait 2 ticks
    28.             set player's tab name to "&aSpieler &8┃ &a%{_Nickname}%"
    29.             set player's nametag to "&aSpieler &8┃ %{_Nickname}%"
    30.             set player's display name to "&aSpieler &8┃ &a%{_Nickname}%"
    31.             send " "
    32.             send "{@PREFIX} &7Dein Nickname lautet: &e%{_Nickname}%"
    33.             send " "
    34.             set player's displayed skin to {_skin}
    35.             set {_rang} to "&aSpieler"
    36.             set {_rank} to "&a"
    37.             set {_p} to player
    38.             execute console command "nte player %{_p}% prefix %{_rang}% &8┃ %{_rank}%"
    39.             execute console command "nte player %{_p}% priority 19"
    40.         else:
    41.             send "{@PREFIX} &7Du bist bereits genickt."
    42.            
    43. command /unnick:
    44.     permission: Nick
    45.     permission message: {@PREFIX} &cDu hast dafür keine Rechte.
    46.     trigger:
    47.         if {NickName.%player%} is set:
    48.             reset player's displayed skin
    49.             send "{@PREFIX} &7Du hast deinen Nickname entfernt."
    50.             delete {NickName.%player%}
    51.             delete {Nick.Used.%player%}
    52.             set player's tab name to "%player%"
    53.             set player's nametag to "%player%"
    54.             set player's display name to "%player%"
    55.             getRank(player)
    56.         else:
    57.             send "{@PREFIX} &7Du bist nicht genickt."
    58.        
    59. on load:
    60.     clear {NickList::*}
    61.     add "ABC" to {NickList::*}
    Works in tablist an chat but not in nametag.
    --- Double Post Merged, Jun 17, 2020, Original Post Date: Jun 17, 2020 ---
    Tried it with Tablisknu, still doesn't works :/
    --- Double Post Merged, Jun 17, 2020 ---
    push
    --- Double Post Merged, Jun 21, 2020 ---
    push
     
  2. pokw

    pokw Member

    Joined:
    Jun 3, 2019
    Messages:
    48
    Likes Received:
    1
    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?
     
  3. PC1up

    PC1up Member

    Joined:
    Jun 14, 2020
    Messages:
    15
    Likes Received:
    1
    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".
    --- Double Post Merged, Jun 22, 2020, Original Post Date: Jun 22, 2020 ---
    Okay no wait now only my nametag prefix is changed but my nametag name is still "PC1up" and not "ABC".
     
  4. KaramDoesMC

    KaramDoesMC Member

    Joined:
    Jun 21, 2020
    Messages:
    17
    Likes Received:
    0
    ^^
     
  5. pokw

    pokw Member

    Joined:
    Jun 3, 2019
    Messages:
    48
    Likes Received:
    1
    What did you change when it changed from ABCPC1up to Tag | PC1up?
     
  6. PC1up

    PC1up Member

    Joined:
    Jun 14, 2020
    Messages:
    15
    Likes Received:
    1
    I think I changed the "set player's nametag" to "set player's default nametag". That should it be
     
Thread Status:
Not open for further replies.

Share This Page

Loading...