KtalePlugin

interface KtalePlugin

A KTale plugin entrypoint.

Design note (intentional constraint)

KTale treats "unknown server APIs" as a first-class constraint.

This interface is intentionally small and stable:

  • Platform adapters provide a PluginContext.

  • Plugin code talks to contracts in ktale-api, not to platform types.

  • No assumptions are made about threading, tick loops, or IO models.

Functions

Link copied to clipboard
abstract fun onDisable(context: PluginContext)

Called when the plugin is being disabled or unloaded.

Link copied to clipboard
abstract fun onEnable(context: PluginContext)

Called when the plugin becomes active.

Link copied to clipboard
abstract fun onLoad(context: PluginContext)

Called when the plugin is discovered and constructed, before it is enabled.