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.

Hide player's nametag

Discussion in 'Skript' started by Andreas, Apr 15, 2020.

Thread Status:
Not open for further replies.
  1. Andreas

    Andreas Member

    Joined:
    Mar 28, 2020
    Messages:
    20
    Likes Received:
    0
    Hello! Im trying to make a murder mystery minigame where you can't see each others nametags so you have to work together to find out who the killer is.

    My problem is that i need to hide a player's nametag so the other player's cant see it.
     
  2. PuchiGFX

    PuchiGFX Member

    Joined:
    Jan 26, 2017
    Messages:
    246
    Likes Received:
    5
    You want to change the nametag or just hide it
     
  3. Andreas

    Andreas Member

    Joined:
    Mar 28, 2020
    Messages:
    20
    Likes Received:
    0
    I just wanna hide it
     
  4. novastosha

    novastosha Well-Known Member

    Joined:
    Jan 11, 2019
    Messages:
    344
    Likes Received:
    22
    You need to mess with minecraft integrated objective things
    --- Double Post Merged, Apr 18, 2020, Original Post Date: Apr 18, 2020 ---
    Code (Skript):
    1. on script load:
    2.     make console execute "scoreboard teams add NoTag Blue_Team"
    3.     make console execute "scoreboard teams option NoTag nametagVisibility never"
    4. function addNoTag(player: player):
    5.     make console execute "scoreboard teams join NoTag %{_player}%"
    6. function removeNoTag(player: player):
    7.     make console execute "scoreboard teams leave NoTag %{_player}%"
    This is a really basic way but useful if it works mark me as best answer
    :emoji_slight_smile:
     
  5. Andreas

    Andreas Member

    Joined:
    Mar 28, 2020
    Messages:
    20
    Likes Received:
    0
    It doesn't work, sadly.
     
  6. novastosha

    novastosha Well-Known Member

    Joined:
    Jan 11, 2019
    Messages:
    344
    Likes Received:
    22
    Code (Skript):
    1. on script load:
    2.     make console execute "scoreboard teams add NoTag Blue_Team"
    3.     make console execute "scoreboard teams option NoTag nametagVisibility never"
    4. function addNoTag(player: player):
    5.     make console execute "scoreboard teams join NoTag %{_player}%"
    6. function removeNoTag(player: player):
    7.     make console execute "scoreboard teams leave NoTag %{_player}%"
    8. command hide:
    9.     trigger:
    10.         addNoTag(player)
    11. command show:
    12.     trigger:
    13.         removeNoTag(player)
    It don't hide your name directly, you should use triggers like commands as i did there
     
  7. Andreas

    Andreas Member

    Joined:
    Mar 28, 2020
    Messages:
    20
    Likes Received:
    0
    I still can't get it to work. Idk if im doing something wrong or its the script.
     
  8. novastosha

    novastosha Well-Known Member

    Joined:
    Jan 11, 2019
    Messages:
    344
    Likes Received:
    22
    Are you testing it with other players or with your self?
     
  9. Andreas

    Andreas Member

    Joined:
    Mar 28, 2020
    Messages:
    20
    Likes Received:
    0
    I test it on myself, and then i ask other players if they can see my nametag
     
  10. novastosha

    novastosha Well-Known Member

    Joined:
    Jan 11, 2019
    Messages:
    344
    Likes Received:
    22
    Sned me your console messages
     
  11. Andreas

    Andreas Member

    Joined:
    Mar 28, 2020
    Messages:
    20
    Likes Received:
    0
    Im testing it on myself, then i ask other players if they can see my nametag
    --- Double Post Merged, Apr 19, 2020, Original Post Date: Apr 19, 2020 ---
    How do i open .gz files?
     
  12. novastosha

    novastosha Well-Known Member

    Joined:
    Jan 11, 2019
    Messages:
    344
    Likes Received:
    22
    Just send screenshots
     
  13. Andreas

    Andreas Member

    Joined:
    Mar 28, 2020
    Messages:
    20
    Likes Received:
    0
    Send screenshot of what?
     
  14. novastosha

    novastosha Well-Known Member

    Joined:
    Jan 11, 2019
    Messages:
    344
    Likes Received:
    22
    Of the messages
     
  15. Andreas

    Andreas Member

    Joined:
    Mar 28, 2020
    Messages:
    20
    Likes Received:
    0
    But i cant open the .gz files that have the messages in them
    --- Double Post Merged, Apr 19, 2020, Original Post Date: Apr 19, 2020 ---
    I figured it out
     
  16. novastosha

    novastosha Well-Known Member

    Joined:
    Jan 11, 2019
    Messages:
    344
    Likes Received:
    22
    I'm out of ideas i'll try to fix it
     
  17. Andreas

    Andreas Member

    Joined:
    Mar 28, 2020
    Messages:
    20
    Likes Received:
    0
  18. krainser

    krainser Member

    Joined:
    Jan 27, 2017
    Messages:
    60
    Likes Received:
    3
    Are you using and side-bar plugin or something that mess with scoreboard? I use this method for my Rust server in order to hide the players nametag like the actual game, but i had to remove it, my scoreboard was buggy
     
  19. Andreas

    Andreas Member

    Joined:
    Mar 28, 2020
    Messages:
    20
    Likes Received:
    0
    I do have a scoreboard
     
  20. krainser

    krainser Member

    Joined:
    Jan 27, 2017
    Messages:
    60
    Likes Received:
    3
    Disable and try the code novatosha gives you
     
Thread Status:
Not open for further replies.

Share This Page

Loading...