Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-3835

Health score tab problem

    XMLWordPrintable

    Details

    • Plugin:
      TabList

      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:
            4 Start watching this issue

              Dates

              Created:
              Updated: