From e1a2b1f90a1a4c39f5b097813381416eb8a3adea Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Thu, 19 May 2011 14:15:13 -0400 Subject: [PATCH] Fixed -nojline. By: EvilSeph --- paper-server/src/main/java/org/bukkit/craftbukkit/Main.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/Main.java b/paper-server/src/main/java/org/bukkit/craftbukkit/Main.java index 0dacd2eeea..9f8708dfac 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/Main.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/Main.java @@ -12,7 +12,7 @@ import joptsimple.OptionSet; import net.minecraft.server.MinecraftServer; public class Main { - public static String jlineTerminalSetting = System.getProperty("jline.terminal"); + public static String jlineTerminalSetting; public static void main(String[] args) { // Todo: Installation script @@ -92,6 +92,7 @@ public class Main { System.setProperty("jline.terminal", "jline.UnsupportedTerminal"); System.setProperty("user.language", "en"); } + jlineTerminalSetting = System.getProperty("jline.terminal"); MinecraftServer.main(options); } catch (Throwable t) { t.printStackTrace();