custom-commands

Command Argument Builder (CommandArgument)

The CommandArgument class is a fundamental component for defining and managing arguments in custom commands within the Minecraft server. It offers extensive customization options, allowing you to tailor arguments precisely to your needs.

Constructor:

CommandArgument(name: string, type: string | CommandTypeParser, id?: string)`

Creates a new instance of the CommandArgument class, representing an argument for a custom command.

Static Methods:

Instance Properties:

Instance Methods:

This documentation provides a comprehensive overview of the CommandArgument class, its properties, and methods. With this knowledge, you can create and customize arguments for your custom Minecraft commands, enhancing your server’s gameplay.