Player custom displayName

I was wondering what is the best way to set a custom displayName for a player?

Am i on the right lines with DispayNameData?

I’ve not tested the idea but try player.offer(Keys.DISPLAY_NAME, Texts.of(“custom name here”))

Ok that doesn’t work. What I did in my chat plugin was listen to MessageSinkEvent.Chat, get the message with event.getMessage(), edit the display name and then event.setMessage(editedMessage)

Currently not supported.

Ahh that explains why it doesn’t work XD

Thats what I thought it would be

Yeah figured as much. This planning to change in the future or no?

Yes, when contextualized data is added to the api and implemented. You can follow it here.