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

Scoreboard Name Tag Visibility Does Nothing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • OS: macOS

    • This server is running CraftBukkit version 3575-Spigot-450dcaa-370eece (MC: 1.19.2) (Implementing API Version 1.19.2-R0.1-SNAPSHOT)
    • Yes

      Player name tag hiding using scoreboard team options does not work in version 1.19.2. The most recent version I could get it to work in was 1.17.1. 

      Here is the code for creating a scoreboard team and having that team hide nameplates for a given player: (kotlin)

      val scoreboard = Bukkit.getScoreboardManager()!!.mainScoreboard
      
      var hidden: Team? = scoreboard.getTeam("nhide")
      if (hidden == null) {
          hidden = scoreboard.registerNewTeam("nhide")
          hidden.setOption(Team.Option.NAME_TAG_VISIBILITY, Team.OptionStatus.NEVER)
      }
      hidden.addEntry(player.name) 

      Just switching which version the server runs on, without adjusting any code or re-compiling the plugin, will determine whether or not the nameplate is hidden as it should be (1.17.1) or not (1.19.2). 

            Unassigned Unassigned
            bcc9902 Benny Conn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: