Creates an instance of the command class.
The command to create.
An instance of the command class.
OptionalcategoriesThe categories of the command.
This is used in the manage commands menu to determine where it should appear.
OptionalcategoryThe category(ies) of the command.
This is used in the manage commands menu to determine where it should appear.
Optionalcommand_The version of the command.
The name of the command.
The commands format version that the command was created in.
The ID of the command settings.
The currently entered command name, either the command name or an alias.
OptionalcurrentescregexpThe current escaped regular expression to determine if a string is this command, either the regular expression or the regular expression of an alias.
OptionalcustomThe number of lines of code in the custom command.
OptionalcustomThe ID of the custom command.
OptionalcustomWhether parameters should be automatcially evaluated for the command.
OptionalcustomThe list of parameters of the custom command.
OptionalcustomThe prefix of the custom command.
OptionalcustomThe type of the custom command.
OptionaldescriptionThe description of the command.
OptionalescregexpThe escaped regular expression to determine if a string is this command.
The version of the add-on that custom command was created in.
The syntaxes of the command.
The formatting code of the command.
OptionalparametersThe parameters of the command.
Only applies to custom commands.
OptionaldisplayType?: stringThe display type of the parameter.
OptionalevaluationType?: stringThe evaluation type of the parameter.
OptionalinternalType?: evaluateParametersArgumentTypesThe internal type of the parameter.
The name of the parameter.
Optionaltype?: stringThe type of the parameter.
OptionalselectedaliasThe currently selected alias of the command, if the user is using an alias.
The details of the alias.
OptionalaliasTo?: stringThe name of the command the alias is an alias of.
The name of the alias.
Optionalescregexp?: { f?: string; v: string }The escaped regular expression of the alias.
The regular expression of the alias.
The index of the alias.
The type of the command.
"built-in": Built-in command."custom": Custom command."unknown": Unknown command type.The aliases of the command.
Only available if the command is a built-in command.
The code of the custom command.
If customCommandType is commands, the code will be a list of strings with vanilla Minecraft commands.
If customCommandType is javascript, the code will be a list of strings that represent lines of JavaScript code, this should be merged together with newline characters.
If the command is not a custom command (Tests if the type property is custom).
If the customCommandId property is undefined.
The current regular expression to determine if a string is this command, will be either the parsed regexp of the command or on of its aliases.
If the command is deprecated.
If the command is functional.
If the command is hidden.
The regular expression to determine if a string is this command.
The release stage of the command.
The settings of the command, will be an instance of the commandSettings class.
The ultra security mode security level of the command.
Only applies when Ultra Security Mode is enabled.
owner: Only the owner or people with the andexdb.fullControl or andexdb.useOwnerLevelCommands permissions can execute the command.headAdmin: Only players with the andexdb.headAdmin or andexdb.useHeadAdminLevelCommands permissions can execute the command.admin: Only players with the andexdb.admin or andexdb.useAdminLevelCommands permissions can execute the command.moderator: Only players with the andexdb.moderator or andexdb.useModeratorLevelCommands permissions can execute the command.WorldEdit: Only players with the andexdb.WorldEdit permission can execute the command.everyone: Everyone can execute the command.StaticdefaultStaticdpThe current prefix set for the chat commands.
This is an alias of defaultPrefix.
Removes the current command if it is a custom command.
If the command is not a custom command (Tests if the type property is custom).
If the customCommandId property is undefined.
Runs the custom command.
The command string.
The executor of the command.
Optionalplayer: Player | Globals.modules.cmds.executeCommandPlayerWThe player object that can be accessed by the code of the command.
Optionalevent: ObjectThe event object that can be accessed by the code of the command.
If the command is not a custom command (Tests if the type property is custom).
If the customCommandId property is undefined.
Saves the custom command.
The ID of the custom command.
If the command is not a custom command (Tests if the type property is custom).
If the customCommandId property is undefined.
Tests if the given player can use this command.
The player to test.
True if the player can use this command, false otherwise. If the player is an instance of the executeCommandPlayerW class, and there is no linked player, or the linked player is not online, the function will return false.
StaticfindGets a built-in command.
The command string to detect the command from.
OptionalreturnCommandInsteadOfAlias: boolean = falseWhether or not to always return the main command, even if the detected command is an alias.
The built-in command.
StaticgetStaticgetGets all of the aliases of the built-in commands.
The aliases of the built-in commands.
StaticgetStaticgetStaticgetGets the built-in commands of a category.
The category of the commands.
OptionalnoSort: boolean = falseIf set to true, it will not sort the commands.
The array of built-in commands.
Represents a command.
Type Param: The
type of the command.