CommandFramework #7
@ -74,7 +74,7 @@ public class SubCommand<T> {
|
||||
}
|
||||
if (validator != null) {
|
||||
if (!validator.validate(sender, sender, (s, objectArgs) -> {
|
||||
// TODO: implement
|
||||
abstractSWCommand.sendMessage(sender, s, objectArgs);
|
||||
})) {
|
||||
throw new CommandNoHelpException();
|
||||
}
|
||||
@ -97,7 +97,7 @@ public class SubCommand<T> {
|
||||
commandPart.generateArgumentArray(objects, sender, args, 0);
|
||||
if (validator != null) {
|
||||
if (!validator.validate(sender, sender, (s, objectArgs) -> {
|
||||
// TODO: implement
|
||||
abstractSWCommand.sendMessage(sender, s, objectArgs);
|
||||
})) {
|
||||
throw new CommandNoHelpException();
|
||||
}
|
||||
@ -134,7 +134,7 @@ public class SubCommand<T> {
|
||||
List<String> tabComplete(T sender, String[] args) {
|
||||
if (validator != null) {
|
||||
if (!validator.validate(sender, sender, (s, objects) -> {
|
||||
// TODO: implement
|
||||
// ignore
|
||||
})) {
|
||||
return null;
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren