Skip to content

Command Attributes

Palm edited this page Oct 16, 2024 · 8 revisions

Commands

Every command consists of a few properties that define its appearance and how it can be used.
These properties are called Attributes.

Understanding how attributes work will allow you to create objects that work as you intend them to.


Attributes

Here is a list of each currently supported attribute, and how it can be used.

  • Name

    Defines the functional name of the command.
    Type: str | string

    • Example:

      helloworld
  • Description

    Defines the description that shows in autocomplete for the command.
    Type: str | string

    • Example:

      Example command.
  • Usage

    Argument structures that the command can have, which decide how it can be used.
    Type: str | string

    • Format:

      /command ...args
      For available argument types, see Endstone Built-In Types.
    • Example:

      /helloworld <message: str> <amount: int>
  • Alias

    Names that can be substituted for the command.
    Type: str | string

    • Example:

      hello
  • Permission

    Permission ids that define who can use the command.
    Type: str | string

    • Format:

      Available:
      • easyas.command.all - All players can use this.
      • easyas.command.op - Only operators can use this.

      ? - To configure your own permissions, consider trying EasyAsPermissions.

    • Example:

      easyas.command.all

Clone this wiki locally