Skip to main content
ScoreboardHandler is obtained via ScoreboardAPI.getHandler() and is the factory for creating and looking up Scoreboard instances. You do not instantiate it directly.

Methods

createScoreboard()

Returns Scoreboard — never null. Creates a new Scoreboard instance. You can create multiple scoreboards for different purposes — for example, one per game arena or one per player group.

getScoreboard(Player player)

Returns Scoreboard or null. Retrieves the Scoreboard currently associated with the given player. Returns null if the player has no scoreboard assigned to them.

getVersion()

Returns String — the VelaBoard implementation version currently running on the server.

Example

ScoreboardHandler handler = ScoreboardAPI.getHandler();
Scoreboard board = handler.createScoreboard();

// Later, retrieve by player:
Scoreboard existing = handler.getScoreboard(player);
if (existing != null) {
    // player already has a scoreboard
}