ScoreboardHelper

class ScoreboardHelper(scoreboardTitle: Component)(source)

This class is used to easily build scoreboards

Parameters

scoreboardTitle

The title which the org.bukkit.scoreboard.Scoreboard should have

Constructors

Link copied to clipboard
constructor(scoreboardTitle: Component)

Functions

Link copied to clipboard
fun getScoreboard(): @NotNull Scoreboard

This method returns the org.bukkit.scoreboard.Scoreboard which was created, ready to be displayed to a org.bukkit.entity.Player IMPORTANT: The org.bukkit.scoreboard.Scoreboard will be updated when methods like line or title are called

Link copied to clipboard
fun line(lineNumber: Int, lineContent: Component): ScoreboardHelper

This method adds a new line to the scoreboard

Link copied to clipboard
fun title(newTitle: Component): ScoreboardHelper

This method sets the title of the scoreboard