Private
Static
builtAll registered built-in commands.
This does not include command aliases, for that, see CommandRegistry.namedAccessBuiltInCommandAliases, CommandRegistry.prefixedAccessBuiltInCommandAliases, and CommandRegistry.regexpAccessBuiltInCommandAliases.
Private
Static
builtAll registered built-in name-accessible commands.
This does not include command aliases, for that, see CommandRegistry.namedAccessBuiltInCommandAliases.
Private
Static
builtAll registered built-in prefix-accessible commands.
This does not include command aliases, for that, see CommandRegistry.prefixedAccessBuiltInCommandAliases.
Private
Static
builtAll registered built-in regex-accessible commands.
This does not include command aliases, for that, see CommandRegistry.regexpAccessBuiltInCommandAliases.
Private
Static
commandsAll registered commands, indexed by name.
This does not include command aliases, for that, see CommandRegistry.namedAccessCommandAliases, CommandRegistry.prefixedAccessCommandAliases, and CommandRegistry.regexpAccessCommandAliases.
Private
Static
customAll registered custom commands with their prefixes are included in their key in the map.
This does not include command aliases, for that, see CommandRegistry.namedAccessCustomCommandAliases, CommandRegistry.prefixedAccessCustomCommandAliases, and CommandRegistry.regexpAccessCustomCommandAliases.
Private
Static
customAll registered custom name-accessible commands.
This does not include command aliases, for that, see CommandRegistry.namedAccessCustomCommandAliases.
Private
Static
customAll registered custom prefix-accessible commands.
This does not include command aliases, for that, see CommandRegistry.prefixedAccessCustomCommandAliases.
Private
Static
customAll registered custom regex-accessible commands.
This does not include command aliases, for that, see CommandRegistry.regexpAccessCustomCommandAliases.
Private
Static
namedAll registered name-accessible built-in command aliases.
Private
Static
namedAll registered name-accessible command aliases.
Private
Static
namedAll registered name-accessible commands.
This does not include command aliases, for that, see CommandRegistry.namedAccessCommandAliases.
Private
Static
namedAll registered name-accessible custom command aliases.
Private
Static
prefixedAll registered prefix-accessible built-in command aliases.
Private
Static
prefixedAll registered prefix-accessible command aliases.
Private
Static
prefixedAll registered prefix-accessible commands.
This does not include command aliases, for that, see CommandRegistry.prefixedAccessCommandAliases.
Private
Static
prefixedAll registered prefix-accessible custom command aliases.
Private
Static
regexpAll registered regex-accessible built-in command aliases.
Private
Static
regexpAll registered regex-accessible command aliases.
Private
Static
regexpAll registered regex-accessible commands.
This does not include command aliases, for that, see CommandRegistry.regexpAccessCommandAliases.
Private
Static
regexpAll registered regex-accessible custom command aliases.
Static
getGets a command by the beginning of the command string.
The beginning of the command string, should not include spaces.
Optional
options: CommandRegistryGetCommandOptions = {}The options for the command retrieval.
Options for the CommandRegistry.getCommand method.
Optional
includeAliases?: booleanWhether or not to include aliases.
Note: Aliases will have a lower priority than actual commands, so if a command with the same name is found, it will be returned instead of the one referenced by the alias.
Optional
typeFilter?: "built-in" | "custom"The type of command to filter by.
The command, or undefined if not found.
If the typeFilter is not built-in
, custom
, or undefined
.
Static
getGets a command by the beginning of the command string, but based on a player's permissions.
The beginning of the command string, should not include spaces.
The player to check permissions for.
Optional
options: CommandRegistryGetCommandOptions = {}The options for the command retrieval.
Options for the CommandRegistry.getCommand method.
Optional
includeAliases?: booleanWhether or not to include aliases.
Note: Aliases will have a lower priority than actual commands, so if a command with the same name is found, it will be returned instead of the one referenced by the alias.
Optional
typeFilter?: "built-in" | "custom"The type of command to filter by.
The command, or undefined if not found.
Static
getGets all matching commands by the beginning of the command string.
The beginning of the command string, should not include spaces.
Optional
typeFilter: "built-in" | "custom"The type of command to filter by.
The list of matching commands.
If the typeFilter is not built-in
, custom
, or undefined
.
Static
registerRegisters a command.
The type of the command data.
The command data.
The registered command.
If the commandData paramter is not an object.
If the commandData.type property is not built-in
, custom
, or unknown
.
If the commandData.commandName property is not a string.
If the CommandType.accessType | commandData.accessType property is regexp
and the commandData.escregexp property is not defined.
If any of the commandData.aliases is not an object.
If any of the commandData.aliases has a type that is not nameAccessibleAlias
, prefixAccessibleAlias
, or regexpAccessibleAlias
.
If any of the commandData.aliases has a commandName that is not a string.
If any of the commandData.aliases has an escregexp that is not an object.
If any of the commandData.aliases has a type of prefixAccessibleAlias
and has a prefix that is not a string.
If any of the commandData.aliases has a type of regexpAccessibleAlias
and has an escregexp.v that is not a string.
If any of the commandData.aliases has a type of regexpAccessibleAlias
and has an escregexp.f that is not a string or undefined
.
Static
unregisterUnregisters a command.
The command to unregister.
Whether or not the command was successfully unregistered, if false
, the command was not found in the registry, so it was either already unregistered or never registered in the first place.
If the command paramter is not an instance of the RegisteredCommand class.
The command registry.