Skip to main content
VelaBoard fires two cancellable Bukkit events — SidebarShowEvent and AddMemberToTeamEvent — giving your plugin fine-grained control over scoreboard behavior.
Both events extend org.bukkit.event.Event and implement Cancellable. Register listeners the standard Bukkit way.

SidebarShowEvent

Package: org.velas.scoreboard.api.event Fired when a sidebar is about to be displayed to a player. Cancellable.

SidebarShowEvent.Reason enum

Use event.getSidebar().isPlayerSidebar() or isSharedSidebar() to distinguish sidebar types inside SidebarShowEvent.

AddMemberToTeamEvent

Package: org.velas.scoreboard.api.event Fired when a player or entity is about to be added to a team. Cancellable.

AddMemberToTeamEvent.Reason enum

Cancelling an event only prevents the current action — it does not remove the sidebar or team from existence.

Registering your listener