Skip to content

IPlugin

Namespace Mc.Scripting · Kind interface

public interface IPlugin

Plugin entry point. One public, non-abstract type with a parameterless constructor per plugin assembly. Most plugins derive from Plugin instead.

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.
void Disable()

Called when the plugin is unloaded; registrations are released afterwards.

void Enable(PluginContext context)

Called once after load; register everything here.

Parameters

Name Type Description
context PluginContext

PluginContext