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