[This is preliminary documentation and is subject to change.]
Registers a custom command with fCraft.
Raises CommandManager.CommandRegistering/CommandRegistered events.
Namespace: fCraftAssembly: fCraft (in fCraft.dll) Version: 0.6.3.2 (0.6.3.2)
Syntax
| C# |
public static void RegisterCustomCommand( CommandDescriptor descriptor )
Parameters
- descriptor
- CommandDescriptor
Command descriptor to register. May not be null.
Exceptions
| Exception | Condition |
|---|---|
| System..::..ArgumentNullException | If descriptor is null. |
| fCraft..::..CommandRegistrationException | If command could not be registered. |