Annotation Interface OnDisable


@Retention(RUNTIME) @Target(METHOD) public @interface OnDisable
Marks a method to be called when the plugin is disabled.

Example:

@OnDisable
public void onDisable(PluginContext context) {
    context.log("info", "Plugin disabled!");
}

The method can optionally accept a PluginContext parameter.