PluginEnableEvent
Namespace Mc.Scripting.Events · Kind struct (ref)
public ref struct PluginEnableEvent : IEventA plugin finished enabling.
| Id | 102 |
| Key | mc:plugin_enable |
| 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. |
Constructors
Section titled “Constructors”| Member | Description |
|---|---|
PluginEnableEvent(Utf8String pluginId, Utf8String pluginName, Utf8String version) |
Creates the event (for firing it from a plugin; native code builds its own). |
Constructor
Section titled “Constructor”public PluginEnableEvent(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 |
Properties
Section titled “Properties”| 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. |
PluginId
Section titled “PluginId”public Utf8String PluginId { get; }The plugin id.
PluginName
Section titled “PluginName”public Utf8String PluginName { get; }The plugin name.
Version
Section titled “Version”public Utf8String Version { get; }The plugin version.
CatalogueId
Section titled “CatalogueId”public static ushort CatalogueId { get; }Catalogue id (stable ABI).
IsCancellable
Section titled “IsCancellable”public static bool IsCancellable { get; }Whether handlers can cancel the event.
public static string Key { get; }Registry key of the event.