Hey guys! I'm working on a /nickname command, but I cannot figure out how to set the player's name above their head. I'm using ProtocolLib and with some google searches I found a way to change the players name alltogether, but that like actually changes their name in-game (changes tab complete etc..) but I just want it to display above their head as a nickname. Is there anyway to do this? Thanks 😄
#Set a player's above their head.
1 messages · Page 1 of 1 (latest)
I think its setPlayerListName(String) but im not sure
Also use setDisplayName(String)
That changes the name in tab, and name in chat. It does not modify the name above the head. :)
Oh
I think you may need to destroy the player for everyone with packets
And then spawn a new one with the nickname as name and the correct skin
You can use reflection for version independent field access to get the nms player handle
And then use that handle to send the nessecary packets