Skip to content

PluginDisableEvent

Namespace Mc.Scripting.Events · Kind struct (ref)

public ref struct PluginDisableEvent : IEvent

A plugin was disabled (unload or hot reload); its registrations are already released.

Id 103
Key mc:plugin_disable
Cancellable no
Fired by the engine yes
Field Type Handlers may write Description
PluginId Utf8String no (readonly) The plugin id.
PluginName Utf8String no (readonly) The plugin name.
Version Utf8String no (readonly) The plugin version.
Member Description
PluginDisableEvent(Utf8String pluginId, Utf8String pluginName, Utf8String version) Creates the event (for firing it from a plugin; native code builds its own).
public PluginDisableEvent(Utf8String pluginId, Utf8String pluginName, Utf8String version)

Creates the event (for firing it from a plugin; native code builds its own). Signature of API 1.0.

Parameters

Name Type Description
pluginId Utf8String
pluginName Utf8String
version Utf8String
Member Description
Utf8String PluginId { get; } The plugin id.
Utf8String PluginName { get; } The plugin name.
Utf8String Version { get; } The plugin version.
static ushort CatalogueId { get; } Catalogue id (stable ABI).
static bool IsCancellable { get; } Whether handlers can cancel the event.
static string Key { get; } Registry key of the event.
public Utf8String PluginId { get; }

The plugin id.

public Utf8String PluginName { get; }

The plugin name.

public Utf8String Version { get; }

The plugin version.

public static ushort CatalogueId { get; }

Catalogue id (stable ABI).

public static bool IsCancellable { get; }

Whether handlers can cancel the event.

public static string Key { get; }

Registry key of the event.

IEvent · Utf8String