Changing Name Above Players Head

Discussion in 'Plugin Development' started by micrlink, Apr 23, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    micrlink

    I Know this question is asked alot. I have looked everywhere and none of it has been working.

    I am trying to get the name above the player to display their health. when I use scoreboards their name is flashing.
     
  2. Offline

    ko47374737

    I believe you use should use TagAPI E.g
    Code:java
    1. @EventHandler
    2. public void onNameTag(AsyncPlayerReceiveNameTagEvent event) {
    3. if (event.getNamedPlayer().getName().equals("TnTBass")) {
    4. event.setTag(ChatColor.RED + "TnTBass");
    5. }
    6. }
     
  3. Offline

    micrlink

    What if you want to change it later?
     
  4. micrlink
    Do, you mean something like a /nick command? I think it would be easy to make one like that using the TagAPI
     
Thread Status:
Not open for further replies.

Share This Page