How can I change the name of players above their heads

Discussion in 'Spigot Plugin Development' started by KSDpolska, Aug 27, 2017.

  1. Hi! I would like to know if there are any way to do that
    Oh and if its possible a way not lagg

    THanks in advanse!

    Excuse me for my bad English
  2. Also For 1.8 it's hard?
  3. As for 1.8 and up the displayname method does no longer changes the name of the player.It does change it in chat only.
  4. You could do it using packets. What you have to do is trick the client into thinking that it is another "player" that joins the game!
    To do this:
    1. New player joins
    2. PacketPlayOutPlayerInfo remove player to all other clients
    3. Change the listname of that player
    4. PacketPlayOutPlayerInfo add player to all other clients
  5. Could you tell me that but step by step please
    I don't know lots of Packets and that
  6. You can add all players into a Team and set the nameTagVisibility option to never.
  7. You could use PacketPlayOutNamedEntitySpawnEvent
    And spawn an entity with the same entityId as the player.
  8. Could you give me an example please?