Solved How would i set the nametag render distance?

Discussion in 'Spigot Plugin Development' started by feliXxX, Jun 22, 2018.

  1. Hey guys,
    i wondered if there's an easy way to set the range within a players nametag can be seen. It would be great if this could be set per player/entity. But that would reqiure working with packets, right?
     
  2. ScarabCoder

    ScarabCoder Retired Resource Staff
    Retired

    You can do it without packets actually. Create a scoreboard for each individual player, create a team for every player you want to hide the nametag for and add the hide nametags flag. To make it disappear/appear depending on distance, simply use either a tick timer or the move event to check the player's distance from every other player.
     
    • Like Like x 2