HSGamer/HSCore

The command and subcommand module can use each other.

portlek opened this issue · 3 comments

  • The command module can contain sub command instance.
  • When a player runs a command, the command will look at the subcommands.

I've separated them because I don't know how others will implement the commands (extends Command, CommandExecutor, etc). And some projects may not need to use sub-commands, like my projects BetterGUI and TopIn.

So It should be optional to add subcommands.

They can add it as a dependency and make their own commands. SubCommandManager is useful in those cases.