add and remove sus

This commit is contained in:
ChomeNS 2023-03-21 12:28:14 +07:00
parent f769cd92b0
commit 9cdcbe3026

View file

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