Change Players Name with ProtocolLib

Discussion in 'Spigot Plugin Development' started by bellrock9, May 21, 2016.

  1. Hi, am trying to change a players tab name, and overhead name with ProtocolLib, I am very confused, and I need help accomplishing this.

    I need to be able to set a players for for players in an arena so a method like

    setNick(Player player, String nick, Player changeforthisplayer){
    }

    Thanks for Reading
     
  2. Add a listener for this packet. http://wiki.vg/Protocol#Player_List_Item

    For action = 0, that's called when the name is sent to the client. Just change this name of the player to change the above head name.
     
  3. @bigteddy98 Do you think you can give me an example on how I would do this ?
     
  4. Easier said than done :p It requires some deep understanding of how the packets work to do so. It would probably take me some time as well ;) People are only here to help with problems, not to provide code.