-
Notifications
You must be signed in to change notification settings - Fork 0
Using the CommandHandler
Rax Ixor edited this page Oct 17, 2017
·
1 revision
Creating a CommandHandler is easy. This should be done in your main file.
CommandHandler handler = new CommandHandler();
Adding commands is also easy.
handler.registerCommand(new YourCommand());
or
handler.registerCommands(
new YourCommand(),
new YourOtherCommand()
);
In order to execute Commands, just follow the example, since I can't be bothered to write proper stuff here.