Documentation Index
Fetch the complete documentation index at: https://velas.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Scoreboard is the central manager object in VelaBoard. Every player you track, every team you configure, and every sidebar you display belongs to a Scoreboard instance. Rather than creating sidebars and teams in isolation, you work through a scoreboard so that all of these pieces stay coordinated in a single context.
The scoreboard lifecycle
You never instantiateScoreboard directly. Instead, obtain one from ScoreboardHandler:
addPlayer(Player). VelaBoard needs a player to be registered before it can display sidebars or assign them to teams through this scoreboard. When a player leaves or you no longer need to track them, call removePlayer(Player) to clean up.
Players
UsegetPlayers() to inspect who is currently registered. It returns a Collection<UUID> of all registered player IDs.
| Method | Description |
|---|---|
addPlayer(Player) | Registers a player with this scoreboard. |
removePlayer(Player) | Unregisters a player and cleans up their sidebar state. |
getPlayers() | Returns a Collection<UUID> of all registered players. |
Teams
Teams group players and entities under shared visual properties like colors, prefixes, and collision rules. TheScoreboard manages the full team lifecycle.
| Method | Description |
|---|---|
team(String name) | Creates a team with the given name if it does not exist, or retrieves it if it does. |
getTeam(String name) | Retrieves an existing team by name. Returns null if not found. |
getTeamOf(Player) | Returns the team a player belongs to, or null if they are not on one. |
hasTeam(String name) | Returns true if a team with that name exists. |
removeTeam(String name) | Deletes the team by name. |
clearTeams() | Removes all teams from this scoreboard. |
Sidebars
A scoreboard can manage both per-player sidebars (PlayerSidebar) and shared sidebars visible to multiple players (SharedSidebar) at the same time.
| Method | Description |
|---|---|
createPlayerSidebar(String title) | Creates a new PlayerSidebar with the given title. |
createSharedSidebar(String title) | Creates a new SharedSidebar with an auto-generated ID. |
createSharedSidebar(String id, String title) | Creates a new SharedSidebar with an explicit ID. |
getSidebar(Player) | Returns the active Sidebar for the player (player or shared), or null. |
getPlayerSidebar(Player) | Returns the player’s PlayerSidebar specifically, or null. |
getSharedSidebar(Player) | Returns the SharedSidebar the player is part of, or null. |
getSharedSidebar(String id) | Retrieves a SharedSidebar by its ID, or null. |
hasSidebar(Player) | Returns true if the player has any active sidebar. |
removePlayerFromSidebar(Player) | Removes the player from their current sidebar. |
A single
Scoreboard instance can manage multiple teams and sidebars simultaneously. You do not need separate scoreboard instances for different groups of players or different sidebar types.