[fix] implement Command Interface for Example command

This commit is contained in:
Hiajen Hiajen 2021-05-23 14:55:44 +02:00
parent 7cb1ed6f75
commit 59420948d3
3 changed files with 20 additions and 2 deletions

View file

@ -57,7 +57,7 @@ public class CommandHandler implements HandlerInterface {
LOGGER.debug("Valid Prefix received");
for (Command command : commands){
if (command.acceptInput()) { // Try execute command
if (command.acceptInput(args[0])) { // Try execute command
command.run(commandSource, args);
LOGGER.debug("Executed following command: " + message);
return command.intercept(); // if executed return interception flag