custom-commands

Command (Command)

The Command class represents a custom command that can be executed within the Minecraft server. This class provides essential properties and methods to define and manage custom commands, allowing you to create unique gameplay experiences. Below, you’ll find detailed information about the Command class, including its constructor, instance properties, and methods.

If you’re ready to explore the capabilities of the Command class and start crafting custom commands for your Minecraft server, dive into the documentation below.

Constructor:

Command(info: CommandBuilder, fn: CommandCallback)

An instance of the Command class represents a custom command that can be executed within the Minecraft server. It encapsulates information about the command and the callback function to execute when the command is invoked.

Instance Properties:

Instance Methods:

This documentation provides a comprehensive overview of the Command class, its properties, and methods. With this knowledge, you can create and manage custom commands to enhance your Minecraft server’s gameplay.