tablist with packets (i believe)

Discussion in 'Plugin Development' started by Xhork, Aug 4, 2019.

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

    Xhork

    Hey !

    I'm making a plugin and I want to make a certain player's name in the tablist in color for certain players... I don't think that's clear xD

    Player 1, player2 and player 3:

    Player 1 see player 3's name in tablist in green and player 2 see player 3's name in tablist normal

    and for this i think that i need to use packets but i have no idea how to use this, and if there is no simple way

    thank you !
     
  2. Offline

    The_Xman249

    I believe you can use the player.setPlayerListName(); to change the players name in the tab.
     
  3. Offline

    Xhork

    That's right, but the player.setPlayerListName(); will change player's name for everyone, i need the player's name to be seen by certain players :/
     
  4. Offline

    Machine Maker

    Yes, this can absolutely be done with packets. Use ProtocolLib to listen for all packets of the type PlayerInfo and modify it according to who the packet is directed at. If you don't know how to use ProtocolLib, you can find info here or just google it.

    ProtocolLib Javadocs
     
Thread Status:
Not open for further replies.

Share This Page