init

fun init(plugin: Plugin, factory: ScoreboardFactory? = null)

Initializes the ScoreboardApi. This must be called before using other methods to enable automatic cleanup.

Parameters

plugin

The plugin instance for event registration.

factory

The scoreboard factory implementation (e.g., NMS based). If null, a default Paper API based factory will be used.