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.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) {