Bungeecord and Health Scoreboards

Discussion in 'Spigot Plugin Development' started by rgaminecraft, Jun 20, 2015.

  1. I have a problem with some code I wrote trying to get the health of a player to display under their name. I have two servers (On on bungee and one direct) and the code works fine on the non-bungee server. However, once I load it onto the bungee server everyones health always '0'. Is there a different way you have to register players with Spigot/Bungee?

    Here is my code:
    Code (Text):

            oNoPartyScoreboard = Bukkit.getScoreboardManager().getNewScoreboard();
            oObjective = oNoPartyScoreboard.registerNewObjective("HBars-NoParty", "health");
            oObjective.setDisplayName("/ 20 " + ChatColor.RED + "❤");




            for (Player oPlayer : Bukkit.getServer().getOnlinePlayers()) {
                Score scorePlayer = oObjective.getScore(oPlayer.getName());
  2. Dang, I wish I could code :p So I can help people like you :p
  3. Has anyone been able to get this working behind bungee?