The type of command data with an accessType of named and a customPrefix.

interface PrefixAccessibleCommandType {
    accessType: "named";
    aliases?: (
        | RegExpAccessibleCommandTypeAlias
        | PrefixAccessibleCommandTypeAlias
        | NameAccessibleCommandTypeAlias
    )[];
    callback: (
        player: Globals.modules.cmds.executeCommandPlayerW,
        event: ChatSendBeforeEvent,
    ) => CommandResponse;
    categories?: [commandCategory?, ...commandCategory[]];
    command_version?: string;
    commandName: string;
    customPrefix: string;
    deprecated?: boolean;
    description?: string;
    enabled?: boolean;
    flagsDocs?: string;
    formatting_code?: string;
    functional?: boolean;
    hidden?: boolean;
    requiredTags?: string[];
    syntax?: string;
    type: "built-in" | "custom" | "unknown";
    ultraSecurityModeSecurityLevel?:
        | "WorldEdit"
        | "owner"
        | "headAdmin"
        | "admin"
        | "moderator"
        | "everyone";
}

Hierarchy (View Summary)

Properties

accessType: "named"

The way the command is accessed.

  • named - Accessed through the command's name.
  • regexp - Accessed through a regular expression.

The aliases of the command.

[]
callback: (
    player: Globals.modules.cmds.executeCommandPlayerW,
    event: ChatSendBeforeEvent,
) => CommandResponse

The callback function of the command.

This function will be called in read-only mode.

Type declaration

If the command throws an error.

categories?: [commandCategory?, ...commandCategory[]]

The categories of the command.

[]
command_version?: string

The version of the command.

"1.0.0"
commandName: string

The name of the command.

customPrefix: string

The custom prefix of the command.

deprecated?: boolean

Whether or not the command is deprecated.

false
description?: string

The description of the command.

"Description Missing"
enabled?: boolean

Whether or not the command is enabled.

true
flagsDocs?: string

The documentation on the flags parameters of the command.

formatting_code?: string

The formatting code to display the command with.

"§f"
functional?: boolean

Whether or not the command is functional.

true
hidden?: boolean

Whether or not the command is hidden.

false
requiredTags?: string[]

The tags required to execute the command.

Only applies when Ultra Security Mode is disabled.

[]
syntax?: string

The syntax of the command.

"Syntax Missing"
type: "built-in" | "custom" | "unknown"

The type of the command.

ultraSecurityModeSecurityLevel?:
    | "WorldEdit"
    | "owner"
    | "headAdmin"
    | "admin"
    | "moderator"
    | "everyone"

The ultra security mode security level required to execute the command.

"everyone"