Skip to content

RegisteredCommand

Namespace Mc.Scripting.Commands · Kind class (sealed)

public sealed class RegisteredCommand : IDisposable, IPluginResource

A command registered through CommandRegistry. Dispose to unregister (plugin unload does it automatically).

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).

Member Description
void Dispose() Unregisters the command.
public void Dispose()

Unregisters the command. Calling it again does nothing.

IPluginResource