InGameCommand

API reference for InGameCommand in @erlcjs/core.

In-Game command structure.

Signature:

interface InGameCommand

#Properties

Property

Modifiers

Type

Description

aliases?

string[]

(Optional) Aliases of the command.

description?

string

(Optional) The description of the command.

execute

(context: { player: Player; args: string[]; }) => void | Promise<void>

The execution of the command.

name

string

The name of the command.

permission?

(RawPlayerPermission | PlayerPermission)[]

(Optional) The permissions the player needs to use the command.