Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-16 04:50:05 +01:00
Try to detect when to disable jline automatically. Fixes BUKKIT-5028
Dieser Commit ist enthalten in:
Ursprung
39719fff74
Commit
bc0ac48074
@ -113,6 +113,12 @@ public abstract class MinecraftServer implements ICommandListener, Runnable, IMo
|
|||||||
|
|
||||||
// CraftBukkit start
|
// CraftBukkit start
|
||||||
this.options = options;
|
this.options = options;
|
||||||
|
// Try to see if we're actually running in a terminal, disable jline if not
|
||||||
|
if (System.console() == null) {
|
||||||
|
System.setProperty("jline.terminal", "jline.UnsupportedTerminal");
|
||||||
|
org.bukkit.craftbukkit.Main.useJline = false;
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
this.reader = new ConsoleReader(System.in, System.out);
|
this.reader = new ConsoleReader(System.in, System.out);
|
||||||
this.reader.setExpandEvents(false); // Avoid parsing exceptions for uncommonly used event designators
|
this.reader.setExpandEvents(false); // Avoid parsing exceptions for uncommonly used event designators
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren