RegisteredCommand
Namespace Mc.Scripting.Commands · Kind class (sealed)
public sealed class RegisteredCommand : IDisposable, IPluginResourceA command registered through CommandRegistry. Dispose to unregister (plugin unload does it automatically).
Properties
Section titled “Properties”| Member | Description |
|---|---|
IReadOnlyList<string> Names { get; } |
The names the command answers to (the main name first, then the aliases). |
public IReadOnlyList<string> Names { get; }The names the command answers to (the main name first, then the aliases).
Methods
Section titled “Methods”| Member | Description |
|---|---|
void Dispose() |
Unregisters the command. |
Dispose
Section titled “Dispose”public void Dispose()Unregisters the command. Calling it again does nothing.