[This is preliminary documentation and is subject to change.]
The CommandManager type exposes the following methods.
Methods
| Member | Description | |
|---|---|---|
| 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. |