Displayname over Head

Discussion in 'Spigot Plugin Development' started by DesperoKF, May 16, 2019.

  1. have you considered adding a prefix to player's name and set that using setDisplayName(String) method?
  2. Check which DisplaySlot the Scoreboard is in, since you're using the MainScoreboard, it's likely that the DisplaySlot is not BELOW_NAME: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/scoreboard/DisplaySlot.html

    Create a New Scoreboard instance just for this, and store it statically in the Main Class, then everywhere you need it you can get it from the Main class statically, and add teams, set the team prefix, and add the player to the Team there.

Share This Page