Skip to main content
VelaBoard provides two sidebar types that serve different display needs. A PlayerSidebar is bound to exactly one player and shows that player individual content. A SharedSidebar carries a single set of content that can be displayed to multiple players simultaneously. Both types share the same core Sidebar interface for managing lines, titles, and visibility.
A PlayerSidebar is scoped to a single player. Create one through your Scoreboard, assign it to the player with setPlayer(Player), and call show() to display it.
To hide the sidebar without destroying it, call hide(). You can call show() again later to bring it back.
To check or change which player is assigned:
Use removePlayer() to detach the sidebar from its current player without destroying the sidebar itself.
Each sidebar supports up to 15 lines, indexed from 0 (top) to 14 (bottom). Use setLine(int, String) to set or update a line, removeLine(int) to clear a specific line, and clearLines() to remove all lines at once.
Line indices start at 0 and go up to 14, giving you 15 lines in total. Passing an index outside this range has no effect.
You can also update the title at any time:

Visibility control

canView(boolean) controls whether the sidebar is allowed to be shown. Set it to false to prevent the sidebar from appearing even if show() is called, and back to true to re-enable display.
Use isBeingViewed() to check whether the sidebar is currently visible to at least one player:

Lifecycle

When you no longer need a sidebar, call remove() to destroy it and clean up its resources. You can check whether a sidebar has already been destroyed with isRemoved().
To check which type a Sidebar reference holds, or to safely cast it:
You can also check whether a particular player is associated with any sidebar type: