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.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) {
|
||||||
|
|
Loading…
Reference in a new issue