Define the custom command, including name, permissions, and parameters.

interface CustomCommand {
    cheatsRequired?: boolean;
    description: string;
    mandatoryParameters?: CustomCommandParameter[];
    name: string;
    optionalParameters?: CustomCommandParameter[];
    permissionLevel: CommandPermissionLevel;
}

Properties

cheatsRequired?: boolean

Cheats must be enabled to run this command. Defaults to true.

description: string

Command description as seen on the command line.

mandatoryParameters?: CustomCommandParameter[]

List of mandatory command parameters.

name: string

The name of the command. A namespace is required.

optionalParameters?: CustomCommandParameter[]

List of optional command parameters.

permissionLevel: CommandPermissionLevel

The permission level required to execute the command.