IPlugin
Namespace Mc.Scripting · Kind interface
public interface IPluginPlugin entry point. One public, non-abstract type with a parameterless constructor per plugin assembly. Most plugins derive from Plugin instead.
Methods
Section titled “Methods”| Member | Description |
|---|---|
void Disable() |
Called when the plugin is unloaded; registrations are released afterwards. |
void Enable(PluginContext context) |
Called once after load; register everything here. |
Disable
Section titled “Disable”void Disable()Called when the plugin is unloaded; registrations are released afterwards.
Enable
Section titled “Enable”void Enable(PluginContext context)Called once after load; register everything here.
Parameters
| Name | Type | Description |
|---|---|---|
context |
PluginContext |