Change playername to selected players

Discussion in 'Plugin Development' started by Lionhard, Jan 8, 2016.

Thread Status:
Not open for further replies.
  1. Hello,

    is there any possibility to change player (display) names to specific players?
    ie, some kind of a friends system, where you see everyone's name as "Stranger" and as soon as you add him to your friends, his name will be seen normally above his head again?

    Probably this won't be able to do with bukkit-only, but do you know some APIs / Libraries that could help me accomplish this?
     
  2. Offline

    Zombie_Striker

    @Lionhard
    You can use TagAPI to change the player's displayname.

    [Edit] In case you're not using something pre-1.8, you can try using prefixs/suffixes with scoreboards to change the player's name.
     
  3. @Zombie_Striker TagAPI says it shouldn't be used anymore with 1.8.1 and up.
    But I do not just want to change the player's display name, I want to change it for specific players.
    But ProtocolLib seems to have a continuation of TagAPI implemented, with the method I need it seems?
    https://gist.github.com/aadnk/8792659 -> LookupNameManager -> setClientName(), or am I wrong?
     
Thread Status:
Not open for further replies.

Share This Page