rework stuff
This commit is contained in:
parent
e66327e3fb
commit
7cb1ed6f75
4 changed files with 11 additions and 2 deletions
|
@ -57,7 +57,8 @@ public class CommandHandler implements HandlerInterface {
|
|||
LOGGER.debug("Valid Prefix received");
|
||||
|
||||
for (Command command : commands){
|
||||
if (command.run(commandSource, args)) { // Try execute command
|
||||
if (command.acceptInput()) { // Try execute command
|
||||
command.run(commandSource, args);
|
||||
LOGGER.debug("Executed following command: " + message);
|
||||
return command.intercept(); // if executed return interception flag
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue