forked from ChomeNS/chomens-bot-java
add and remove sus
This commit is contained in:
parent
f769cd92b0
commit
9cdcbe3026
1 changed files with 2 additions and 6 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue