Plugin Command

API of Plugin Command

Plugin Command Options

interface PluginCommandOptions {
    name: string;
    description: string;
    aliases: string[];
    args: {
        min: number;
        max: number;
    };
    arguments: PluginCommandArgumentsOptions[]
}

Plugin Command Arguments Options

interface PluginCommandArgumentOptions {
    name: string;
    optional?: boolean;
    type: "int" 
    | "float" 
    | "value" 
    | "wildcard_int"
    | "wildcard_target" 
    | "operator" 
    | "command_operator"
    | "target" 
    | "file_path" 
    | "integer_range" 
    | "equipment_slots" 
    | "string" 
    | "block_position" 
    | "position" 
    | "message" 
    | "raw_text" 
    | "json" 
    | "block_states" 
    | "command";
}

Last updated