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.
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 aSharedSidebar through your Scoreboard instance. You can provide an explicit string ID or let VelaBoard generate one automatically.
Adding players and showing
Register players with the sidebar usingaddPlayer, then call show() to display it to all of them at once.
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 viaaddPlayer) and viewers (players currently seeing the sidebar). A player can be registered without currently viewing it — for example, after hideFrom is called.
| Method | Description |
|---|---|
getPlayers() | Returns all players registered with the sidebar via addPlayer. |
getViewers() | Returns the players currently viewing the sidebar. |
isViewedBy(UUID) | Returns true if the given player is currently seeing the sidebar. |
isBeingViewedByAll() | Returns true if every registered player is currently viewing it. |