From 551f48f2dc612c69e371d5164ef526bf0503f40c Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Wed, 19 Apr 2023 12:40:04 +0700 Subject: [PATCH] fard --- .../chayapak/chomens_bot/plugins/ConsolePlugin.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/ConsolePlugin.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/ConsolePlugin.java index 54fa644..849b624 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/ConsolePlugin.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/ConsolePlugin.java @@ -1,14 +1,13 @@ package land.chipmunk.chayapak.chomens_bot.plugins; -import land.chipmunk.chayapak.chomens_bot.Configuration; -import lombok.Getter; import land.chipmunk.chayapak.chomens_bot.Bot; +import land.chipmunk.chayapak.chomens_bot.Configuration; import land.chipmunk.chayapak.chomens_bot.command.ConsoleCommandContext; +import lombok.Getter; import net.dv8tion.jda.api.JDA; import net.kyori.adventure.text.Component; import net.kyori.adventure.text.TextComponent; import net.kyori.adventure.text.format.NamedTextColor; -import org.jline.reader.EndOfFileException; import org.jline.reader.LineReader; import org.jline.reader.LineReaderBuilder; @@ -50,10 +49,6 @@ 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) { System.exit(1); }