Hiding a player's name tag?

Discussion in 'Plugin Development' started by tech6425, Aug 9, 2013.

?

If this isn't currently implemented, would you want this in Bukkit?

Poll closed Feb 9, 2014.
  1. Yes, I would use it.

    3 vote(s)
    37.5%
  2. It would be nice, but I wouldn't use it.

    1 vote(s)
    12.5%
  3. I think that is a stupid idea.

    1 vote(s)
    12.5%
  4. I don't think it is possible for vanilla Minecraft to do that.

    3 vote(s)
    37.5%
Thread Status:
Not open for further replies.
  1. Offline

    tech6425

    I want to develop a plugin for a spy server mini game, but I need to have the spy's name tag hidden. Is there a way to hide just the name tag of the player with the player still being seen?
     
  2. Offline

    raGan.

    I believe that nametag is handled clientside, so you would need clientside modification to achieve that. It also expains why it's not in bukkit yet.
     
  3. Offline

    xxMOxMOxx

    It doesn't seem like that because there is an API, but it seems like it would also affect player skins
    http://dev.bukkit.org/bukkit-plugins/tag/
     
  4. Offline

    raGan.

    Changing text inside the name tag, and causing client to not render it are different things.
     
  5. Offline

    xxMOxMOxx

    I was just thinking it could be set to null
     
  6. Offline

    raGan.

    I'm not sure how client would handle that, maybe displaying little semi-transparent rectangle ? I also think it's not possible to send "null string", just empty string.
     
  7. Offline

    tech6425

    So, would I just use TagAPI to set the player's name to a blank string?
     
  8. Offline

    raGan.

    Yes. This will mess up the player's skin, though.
     
  9. Offline

    tech6425

    Hey, I looked at the source code for a plugin that hides the players nametag if they aren't within 16 blocks. It appears that it uses ProtocalLib to modify the packet being sent, so the client thinks the player is sneaking. I think I will do something similar.
     
Thread Status:
Not open for further replies.

Share This Page