abstract

JavaPlugin

Base class for all Hytale plugins. Provides lifecycle methods (setup, start, shutdown) and access to registries for commands and events.

Methods

CommandRegistry getCommandRegistry()

Returns the command registry for registering commands.

EventRegistry getEventRegistry()

Returns the event registry for registering event handlers.

PluginManifest getManifest()

Get plugin manifest with version, authors, description.

String getName()

Get plugin name from manifest.

void setup()

Called when the plugin is being set up. Register commands and event handlers here.

void shutdown()

Called when the plugin shuts down. Clean up resources here.

void start()

Called when the plugin starts. Initialize runtime resources here.