Class Sidebar

java.lang.Object
net.minestom.server.scoreboard.Sidebar
All Implemented Interfaces:
Scoreboard, Viewable

public class Sidebar
extends java.lang.Object
implements Scoreboard
Represents a sidebar which can contain up to 16 Sidebar.ScoreboardLine.

In order to use it you need to create a new instance using Sidebar(String) and create new lines with createLine(ScoreboardLine). You can then add a Player to the viewing list using addViewer(Player) and remove him later with removeViewer(Player).

Lines can be modified using their respective identifier using updateLineContent(String, ColoredText) and updateLineScore(String, int).

  • Constructor Details

    • Sidebar

      public Sidebar​(java.lang.String title)
      Creates a new sidebar
      Parameters:
      title - The title of the sidebar
  • Method Details