Skip to main content
SharedSidebar lets you show the same scoreboard to any number of players simultaneously — ideal for server-wide stats, global event timers, or any content that doesn’t differ between players.

Creating a shared sidebar

Create a SharedSidebar through your Scoreboard instance. You can provide an explicit string ID or let VelaBoard generate one automatically.
Use an explicit ID when you need to retrieve the sidebar later. Call board.getSharedSidebar("server-stats") at any point to get a reference back by ID. Use shared.getId() to read the ID from an existing reference.

Adding players and showing

Register players with the sidebar using addPlayer, then call show() to display it to all of them at once.
To show the sidebar to one specific player by UUID without modifying the full roster, use showTo:

Full example

Updating a line on a SharedSidebar updates it for all viewers. There is no per-player line override — use a PlayerSidebar if you need content to differ between players.

Hiding

Hide the sidebar from all registered players at once, or from a single player by UUID.

Checking viewers

VelaBoard distinguishes between players (registered via addPlayer) and viewers (players currently seeing the sidebar). A player can be registered without currently viewing it — for example, after hideFrom is called.