diff --git a/proxy/src/main/java/com/velocitypowered/proxy/console/VelocityConsole.java b/proxy/src/main/java/com/velocitypowered/proxy/console/VelocityConsole.java index 5fd60d35b..fa1ac0bee 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/console/VelocityConsole.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/console/VelocityConsole.java @@ -51,12 +51,16 @@ public final class VelocityConsole extends SimpleTerminalConsole implements Comm return super.buildReader(builder .appName("Velocity") .completer((reader, parsedLine, list) -> { - Optional> o = this.server.getCommandManager().offerSuggestions(this, parsedLine.line()); - o.ifPresent(offers -> { - for (String offer : offers) { - list.add(new Candidate(offer)); - } - }); + try { + Optional> o = this.server.getCommandManager().offerSuggestions(this, parsedLine.line()); + o.ifPresent(offers -> { + for (String offer : offers) { + list.add(new Candidate(offer)); + } + }); + } catch (Exception e) { + logger.error("An error occurred while trying to perform tab completion.", e); + } }) ); }