Interface ScoreboardService
public interface ScoreboardService
Addon contributions to Zentrix's sidebars.
Zentrix renders the configured lobby and per-state sidebars as before, then passes each one to
the registered SidebarContributors, highest priority first and equal priorities in
registration order, each seeing the previous one's result. Only what actually changed is sent to
the player, so a contributor that returns the same text costs no packets.
Without registrations nothing of this runs. Registrations end on their own when the owning plugin disables.
- Since:
- 1.8.0
-
Method Summary
Modifier and TypeMethodDescription@NotNull RegistrationregisterContributor(@NotNull org.bukkit.plugin.Plugin owner, int priority, @NotNull SidebarContributor contributor) Registers a sidebar contributor.
-
Method Details
-
registerContributor
@NotNull @NotNull Registration registerContributor(@NotNull @NotNull org.bukkit.plugin.Plugin owner, int priority, @NotNull @NotNull SidebarContributor contributor) Registers a sidebar contributor.- Parameters:
owner- the plugin the registration belongs to; it must be enabledpriority- the order among contributors, higher firstcontributor- the contributor- Returns:
- the registration, to unregister early
- Throws:
IllegalArgumentException- when the owner is not enabled
-