[This is preliminary documentation and is subject to change.]
Static class that allows registration and parsing of all text commands.
Namespace: fCraftAssembly: fCraft (in fCraft.dll) Version: 0.6.3.1 (0.6.3.1)
Syntax
| C# |
public static class CommandManager
Members
| All Members | Methods | Events |
| Member | Description | |
|---|---|---|
| CommandCalled | Occurs when the command has been called by a player or the console. | |
| CommandCalling | Occurs when a command is being called by a player or the console (cancelable). | |
| CommandRegistered | Occurs when a command has been registered. | |
| CommandRegistering | Occurs when a command is being registered (cancelable). | |
| GetCommands()()()() | Gets a list of all commands (includding hidden ones). | |
| GetCommands(Boolean) | Gets a list of ONLY hidden or non-hidden commands, not both. | |
| GetCommands(CommandCategory, Boolean) | Gets a list of commands in a specified category.
Note that commands may belong to more than one category. | |
| GetCommands(Rank, Boolean) | Gets a list of commands available to a specified rank. | |
| GetDescriptor(String, Boolean) | Finds an instance of CommandDescriptor for a given command.
Case-insensitive, but no autocompletion. | |
| IsValidCommandName(String) | Checks whether a command name is acceptable.
Constraints are similar to Player.IsValidName, except for minimum length. | |
| ParseCommand(Player, CommandReader, Boolean) | Parses and calls a specified command. | |
| RegisterCustomCommand(CommandDescriptor) | Registers a custom command with fCraft.
Raises CommandManager.CommandRegistering/CommandRegistered events. |