1.14.4 Change nickname via reflection change variable

Discussion in 'Spigot Plugin Development' started by kubaxdev, Feb 26, 2020.

  1. Hello. I changed the player's name by reflection and when I did it, above head the prefix and suffix removed. How do you prevent this so that you don't delete the scoreboard when you change your player profile?
  2. xyz. why are you changing the nickname via reflection. player#setDisplayName not good?
  3. That wont change the name above the players head it's only for chat.

    Get the players scoreboard before you change their name and once you change their name re-add them to the scoreboard.