Solved Different colored nametags for different players

Discussion in 'Spigot Plugin Development' started by Sxlver_, Feb 15, 2020.

  1. Hi there,

    I'll keep it short, I want to make a plugin that displays the players nametag for different roles in different colors, (for player A my nametag is red and for player B it is green)

    Does anyone have any idea how I can do it that? [a code example would be welcome :)]
     
  2. I am not sure and can't check now, but, scoreboard teams?
     
  3. Have their rank registered in the plugin then just get it and set what you want for each one
     
  4. I dont exactly get what you mean @InfinityBTBuilds can you explain it a little bit more precise?
     
  5. over players heads or in chat or in tab list?
    /e over players heads might be done with teams/scoreboards
    other two need packets
     
  6. Youll need to use scoreboard teams and set the team prefix. Also if you want everyone to see different player based on wether or not their are a trusted faction or something, you'll need to use NMS

    Example: Player A name is green for his friend Player B. But Player C hates Player A and sees his name in red.
     
  7. Alright, thank you.