Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-126193

Health score tab problem

    XMLWordPrintable

    Details

    • Confirmation Status:
      Unconfirmed

      Description

      The problem is that when a player is available on the server and the server owner is just switching on the health tab, he reloads, but there are players on the server and players do not show the taboos beside their name the health level just a blank space. It only appears when the player re-connects to the server, but I do not want that.

      Here is the code:

      Scoreboard board = pl.getScoreboard();
      Objective objective = board.getObjective("showhealth");
      if (objective == null) {
       objective = board.registerNewObjective("showhealth", "health");
       objective.setDisplaySlot(DisplaySlot.PLAYER_LIST);
       objective.setDisplayName(ChatColor.RED + "❤");
      }
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              montlikadani montlikadani
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: