Creating command - S3nS3IW00/JCommands GitHub Wiki
To create a command you have to create a new instance of ServerCommand
or GlobalCommand
object. The constructor expects a name and description as parameter in both classes.
Example
Let's create a command with example
name:
ServerCommand command = new ServerCommand("example", "This is the description");
After this command gets registered it can be executed with /example