SubCommandLib¶
Getting started¶
What are subcommands you might ask? Subcommands are commands that are registered after a main, central command. Think of them as arguments of a command that are a commands themselves.
Ex: /deluxehub reload
To get started with subcommand lib you need to either do 1 or 2 depending on your build system:
Note:
Is completely optional and is not neccessary at all, just for convenience of easier version swapping.
VERSION
& ```can either be found on curseforge or on repsy
Adding Subcommands¶
To do that, we need to do a few things:
- Make a custom manager class
- Make a class extending subcommand
- Register the command & main command