added template for command not found, when disabling a command in a group

This commit is contained in:
Sheldan
2020-05-14 01:02:31 +02:00
parent 4c826676d0
commit 3f6d980c4c
5 changed files with 25 additions and 12 deletions

View File

@@ -1,9 +0,0 @@
package dev.sheldan.abstracto.core.command.exception;
import dev.sheldan.abstracto.core.exception.AbstractoRunTimeException;
public class CommandException extends AbstractoRunTimeException {
public CommandException(String message) {
super(message);
}
}

View File

@@ -0,0 +1,20 @@
package dev.sheldan.abstracto.core.command.exception;
import dev.sheldan.abstracto.core.exception.AbstractoRunTimeException;
import dev.sheldan.abstracto.templating.Templatable;
public class CommandNotFoundException extends AbstractoRunTimeException implements Templatable {
public CommandNotFoundException() {
super("");
}
@Override
public String getTemplateName() {
return "command_not_found_exception_text";
}
@Override
public Object getTemplateModel() {
return new Object();
}
}