ScoreboardAPI is the singleton entry point for VelaBoard. All access to scoreboard functionality starts here.
ScoreboardAPI is initialized by the VelaBoard plugin automatically — you do not instantiate it yourself.
Methods
ScoreboardAPI.isInitialized()
Returns boolean — true if VelaBoard has been initialized and is ready to use.
Use this as a safety check before calling any other ScoreboardAPI methods. Calling other methods before initialization can result in exceptions.
if (!ScoreboardAPI.isInitialized()) return;
ScoreboardAPI.getHandler()
Returns ScoreboardHandler — never null.
The main gateway to creating and managing scoreboards. Throws NullPointerException if called before VelaBoard has been initialized.
Always guard calls to this method with isInitialized().
ScoreboardAPI.getMinecraftVersion()
Returns String — the Minecraft version the server is currently running.
String version = ScoreboardAPI.getMinecraftVersion();
// e.g. "1.20.1"
Safe usage pattern
Always verify that VelaBoard is initialized before accessing any API methods.
if (!ScoreboardAPI.isInitialized()) {
getLogger().warning("VelaBoard is not loaded!");
return;
}
ScoreboardHandler handler = ScoreboardAPI.getHandler();
String version = ScoreboardAPI.getMinecraftVersion();