UNPKG

@jsprismarine/prismarine

Version:

Dedicated Minecraft Bedrock Edition server written in TypeScript

33 lines 834 B
import { CommandDispatcher } from '../../../brigadier/src/index.ts'; export interface CommandProps { id: string; description?: string; permission?: string; aliases?: string[]; } export declare class Command { /** * The command's id in a `[namespace]:[id]` format. */ id: string; get name(): string; /** * The command's description. */ description: string; /** * The command's permission. */ permission?: string; /** * The command's aliases. */ aliases?: string[]; constructor({ id, description, permission, aliases }: CommandProps); /** * Register the command. */ register(_dispatcher: CommandDispatcher<any>): Promise<void>; usage(dispatcher: CommandDispatcher<any>): string; } //# sourceMappingURL=Command.d.ts.map