diff --git a/src/main/java/me/chayapak1/chomensbot_mabe/plugins/ConsolePlugin.java b/src/main/java/me/chayapak1/chomensbot_mabe/plugins/ConsolePlugin.java index d3e4902..8a00765 100644 --- a/src/main/java/me/chayapak1/chomensbot_mabe/plugins/ConsolePlugin.java +++ b/src/main/java/me/chayapak1/chomensbot_mabe/plugins/ConsolePlugin.java @@ -9,9 +9,7 @@ import net.kyori.adventure.text.format.NamedTextColor; import org.jline.reader.EndOfFileException; import org.jline.reader.LineReader; import org.jline.reader.LineReaderBuilder; -import org.jline.terminal.TerminalBuilder; -import java.io.IOException; import java.util.Arrays; import java.util.List; @@ -34,10 +32,6 @@ public class ConsolePlugin { bot.logger(new LoggerPlugin(bot)); } - try { - TerminalBuilder.builder().build(); - } catch (IOException ignored) {} - String prompt = "> "; new Thread(() -> { @@ -45,6 +39,8 @@ public class ConsolePlugin { String line = null; try { line = reader.readLine(prompt); + } catch (NoClassDefFoundError e) { + line = reader.readLine(prompt); } catch (EndOfFileException e) { return; } catch (Exception e) {