CommandUsage

This is a guide to learn how to add a command aid system and an automatic tab completer to your commands.

What is CommandUsage ?

CommandUsage is a class which allows you to create an advanced aid system for your commands and an automatic tab completer for you command arguments. These two systems are both handled by the API so you only have to create it in json and not in code.

How create a CommandUsage ?

At this point, you should have something like this in your command resource file.

Remember that my command's name is item so I will write the following codes into the command_item.json file.

{
    "item": {}
}

To create a command usage which will contain our command aid system and our automatic tab completer, write the following code into the item section.

"commandUsage": {}

So you should have something like this:

{
  "item": {
    "commandUsage": {}
  }
}

Command aid system

To learn how to create an advanced commmand aid system, you can read the guide below.

Automatic tab completor

To learn how to create and how to use the automatic tab completor, you can read the guide below.

Last updated