Hello, Is the thing mentioned in the title still possible with spigot 1.8? I have been googling and trying for so long now but I can't seem to find out how to do this. Does anyone know a a way to do this? Thanks, Alex
do you want to completly change the nametag or just color it or add a prefix/suffix? if you want to completly change it, then there are libs for you, for the other parts use the scoreboard.
you need to send 4 packets in the right order: PacketPlayOutEntityDestroy "kill" the player PacketPlayOutPlayerInfo (with action remove) "disconnect" the player PacketPlayOutPlayerInfo (with action add) "connect" a new player (your old player with a new name) PacketPlayOutNamedEntitySpawn "spawn" the new player I suggest using wiki.vg to find out what paramters the packets need
Look at some reflection to change name field in craftplayer and respawning him (hiding + respawning from other players).
Wouldn't this mean that the player kind of flickers for other players? I'm wanting to update the name every second so I think it would be pretty flickery, wouldn't it?
don't, just don't. I have no idea if it would flicker or not, but when you send 4 packets to every player every seconds, some of your players with bad pcs or bad connections get basicly dosed
Take a look at my plugin "CoreAPI" and look how i have done it. https://www.spigotmc.org/resources/...hievements-nametags-tellraw-uuid-mysql.20389/ It would be too much to paste it in here.