Make the brigadier mapper a bit smarter

This commit is contained in:
Alexander Söderberg 2020-09-15 17:27:41 +02:00
parent d78d64329b
commit c88b267758
No known key found for this signature in database
GPG key ID: C0207FF7EA146678
6 changed files with 160 additions and 42 deletions

View file

@ -67,4 +67,14 @@ public class InvalidSyntaxException extends CommandParseException {
return String.format("Invalid command syntax. Correct syntax is: %s", this.correctSyntax);
}
@Override
public final synchronized Throwable fillInStackTrace() {
return this;
}
@Override
public final synchronized Throwable initCause(final Throwable cause) {
return this;
}
}

View file

@ -67,4 +67,14 @@ public class NoPermissionException extends CommandParseException {
return this.missingPermission;
}
@Override
public final synchronized Throwable fillInStackTrace() {
return this;
}
@Override
public final synchronized Throwable initCause(final Throwable cause) {
return this;
}
}

View file

@ -75,4 +75,14 @@ public final class NoSuchCommandException extends CommandParseException {
return this.suppliedCommand;
}
@Override
public synchronized Throwable fillInStackTrace() {
return this;
}
@Override
public synchronized Throwable initCause(final Throwable cause) {
return this;
}
}