Skip to content

Scoreboard Utility

Get scoreboard

Scoreboard ScoreboardUtil.getScoreboard()

Returns Scoreboard if not null.

Get sidebar

ScoreObjective ScoreboardUtil.getSidebar()

Returns ScoreObjective if not null.

Get sidebar title

String ScoreboardUtil.getSidebarTitle()

Returns the full title of sidebar.

Get sidebar lines

List<String> ScoreboardUtil.getSidebarLines()

Returns all lines of the sidebar.

Title contains

boolean ScoreboardUtil.titleContains(String text)

Checks if the sidebar title contains specified text.

Line contains

boolean ScoreboardUtil.lineContains(String text)

Checks if the sidebar contains specificed text on any line.