Revert "Fix errors on startup when double clicking jar (#2901)"
This reverts commit a0438faba9
.
This commit is contained in:
parent
a0438faba9
commit
b51fbefc48
3 changed files with 16 additions and 18 deletions
|
@ -1,4 +1,4 @@
|
||||||
From 322bdbdbd5693d6f216dc292396c192f3b4ded33 Mon Sep 17 00:00:00 2001
|
From aec337e66237495db8935baae5b323a74ffc44f5 Mon Sep 17 00:00:00 2001
|
||||||
From: Minecrell <minecrell@minecrell.net>
|
From: Minecrell <minecrell@minecrell.net>
|
||||||
Date: Fri, 9 Jun 2017 19:03:43 +0200
|
Date: Fri, 9 Jun 2017 19:03:43 +0200
|
||||||
Subject: [PATCH] Use TerminalConsoleAppender for console improvements
|
Subject: [PATCH] Use TerminalConsoleAppender for console improvements
|
||||||
|
@ -143,22 +143,20 @@ index 000000000..685deaa0e
|
||||||
+
|
+
|
||||||
+}
|
+}
|
||||||
diff --git a/src/main/java/net/minecraft/server/DedicatedServer.java b/src/main/java/net/minecraft/server/DedicatedServer.java
|
diff --git a/src/main/java/net/minecraft/server/DedicatedServer.java b/src/main/java/net/minecraft/server/DedicatedServer.java
|
||||||
index a78896dc8..999361e34 100644
|
index a78896dc8..886900006 100644
|
||||||
--- a/src/main/java/net/minecraft/server/DedicatedServer.java
|
--- a/src/main/java/net/minecraft/server/DedicatedServer.java
|
||||||
+++ b/src/main/java/net/minecraft/server/DedicatedServer.java
|
+++ b/src/main/java/net/minecraft/server/DedicatedServer.java
|
||||||
@@ -86,6 +86,11 @@ public class DedicatedServer extends MinecraftServer implements IMinecraftServer
|
@@ -86,6 +86,9 @@ public class DedicatedServer extends MinecraftServer implements IMinecraftServer
|
||||||
if (!org.bukkit.craftbukkit.Main.useConsole) {
|
if (!org.bukkit.craftbukkit.Main.useConsole) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
+ // Paper start - Use TerminalConsoleAppender
|
+ // Paper start - Use TerminalConsoleAppender
|
||||||
+ if (System.console() != null) {
|
+ new com.destroystokyo.paper.console.PaperConsole(DedicatedServer.this).start();
|
||||||
+ new com.destroystokyo.paper.console.PaperConsole(DedicatedServer.this).start();
|
|
||||||
+ }
|
|
||||||
+ /*
|
+ /*
|
||||||
jline.console.ConsoleReader bufferedreader = reader;
|
jline.console.ConsoleReader bufferedreader = reader;
|
||||||
// CraftBukkit end
|
// CraftBukkit end
|
||||||
|
|
||||||
@@ -118,6 +123,8 @@ public class DedicatedServer extends MinecraftServer implements IMinecraftServer
|
@@ -118,6 +121,8 @@ public class DedicatedServer extends MinecraftServer implements IMinecraftServer
|
||||||
DedicatedServer.LOGGER.error("Exception handling console input", ioexception);
|
DedicatedServer.LOGGER.error("Exception handling console input", ioexception);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -167,7 +165,7 @@ index a78896dc8..999361e34 100644
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -129,6 +136,9 @@ public class DedicatedServer extends MinecraftServer implements IMinecraftServer
|
@@ -129,6 +134,9 @@ public class DedicatedServer extends MinecraftServer implements IMinecraftServer
|
||||||
}
|
}
|
||||||
global.addHandler(new org.bukkit.craftbukkit.util.ForwardLogHandler());
|
global.addHandler(new org.bukkit.craftbukkit.util.ForwardLogHandler());
|
||||||
|
|
||||||
|
@ -177,7 +175,7 @@ index a78896dc8..999361e34 100644
|
||||||
final org.apache.logging.log4j.core.Logger logger = ((org.apache.logging.log4j.core.Logger) LogManager.getRootLogger());
|
final org.apache.logging.log4j.core.Logger logger = ((org.apache.logging.log4j.core.Logger) LogManager.getRootLogger());
|
||||||
for (org.apache.logging.log4j.core.Appender appender : logger.getAppenders().values()) {
|
for (org.apache.logging.log4j.core.Appender appender : logger.getAppenders().values()) {
|
||||||
if (appender instanceof org.apache.logging.log4j.core.appender.ConsoleAppender) {
|
if (appender instanceof org.apache.logging.log4j.core.appender.ConsoleAppender) {
|
||||||
@@ -137,6 +147,8 @@ public class DedicatedServer extends MinecraftServer implements IMinecraftServer
|
@@ -137,6 +145,8 @@ public class DedicatedServer extends MinecraftServer implements IMinecraftServer
|
||||||
}
|
}
|
||||||
|
|
||||||
new org.bukkit.craftbukkit.util.TerminalConsoleWriterThread(System.out, this.reader).start();
|
new org.bukkit.craftbukkit.util.TerminalConsoleWriterThread(System.out, this.reader).start();
|
||||||
|
@ -619,5 +617,5 @@ index 722ca8496..5a049e1b5 100644
|
||||||
</Loggers>
|
</Loggers>
|
||||||
</Configuration>
|
</Configuration>
|
||||||
--
|
--
|
||||||
2.24.0
|
2.25.0.windows.1
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
From 2d630b43625d43754349a02130be17f59eddeac6 Mon Sep 17 00:00:00 2001
|
From 8e4e7526d65ab60ec0c5b51524448837abe6249d Mon Sep 17 00:00:00 2001
|
||||||
From: Minecrell <minecrell@minecrell.net>
|
From: Minecrell <minecrell@minecrell.net>
|
||||||
Date: Mon, 18 Sep 2017 12:00:03 +0200
|
Date: Mon, 18 Sep 2017 12:00:03 +0200
|
||||||
Subject: [PATCH] Use Log4j IOStreams to redirect System.out/err to logger
|
Subject: [PATCH] Use Log4j IOStreams to redirect System.out/err to logger
|
||||||
|
@ -28,10 +28,10 @@ index 93c1a04bc..663eacfe2 100644
|
||||||
<groupId>org.ow2.asm</groupId>
|
<groupId>org.ow2.asm</groupId>
|
||||||
<artifactId>asm</artifactId>
|
<artifactId>asm</artifactId>
|
||||||
diff --git a/src/main/java/net/minecraft/server/DedicatedServer.java b/src/main/java/net/minecraft/server/DedicatedServer.java
|
diff --git a/src/main/java/net/minecraft/server/DedicatedServer.java b/src/main/java/net/minecraft/server/DedicatedServer.java
|
||||||
index 999361e34..5fee3f9a9 100644
|
index 886900006..0411fb3ee 100644
|
||||||
--- a/src/main/java/net/minecraft/server/DedicatedServer.java
|
--- a/src/main/java/net/minecraft/server/DedicatedServer.java
|
||||||
+++ b/src/main/java/net/minecraft/server/DedicatedServer.java
|
+++ b/src/main/java/net/minecraft/server/DedicatedServer.java
|
||||||
@@ -150,8 +150,10 @@ public class DedicatedServer extends MinecraftServer implements IMinecraftServer
|
@@ -148,8 +148,10 @@ public class DedicatedServer extends MinecraftServer implements IMinecraftServer
|
||||||
*/
|
*/
|
||||||
// Paper end
|
// Paper end
|
||||||
|
|
||||||
|
@ -45,5 +45,5 @@ index 999361e34..5fee3f9a9 100644
|
||||||
|
|
||||||
thread.setDaemon(true);
|
thread.setDaemon(true);
|
||||||
--
|
--
|
||||||
2.24.0
|
2.25.0.windows.1
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
From 8f4d4336da37df3266a1faa8b6179c89999e3206 Mon Sep 17 00:00:00 2001
|
From 5632d26dd961b00051930945ccc100df3d16b34f Mon Sep 17 00:00:00 2001
|
||||||
From: Aikar <aikar@aikar.co>
|
From: Aikar <aikar@aikar.co>
|
||||||
Date: Sun, 12 Aug 2018 02:33:39 -0400
|
Date: Sun, 12 Aug 2018 02:33:39 -0400
|
||||||
Subject: [PATCH] Use a Queue for Queueing Commands
|
Subject: [PATCH] Use a Queue for Queueing Commands
|
||||||
|
@ -6,7 +6,7 @@ Subject: [PATCH] Use a Queue for Queueing Commands
|
||||||
Lists are bad as Queues mmmkay.
|
Lists are bad as Queues mmmkay.
|
||||||
|
|
||||||
diff --git a/src/main/java/net/minecraft/server/DedicatedServer.java b/src/main/java/net/minecraft/server/DedicatedServer.java
|
diff --git a/src/main/java/net/minecraft/server/DedicatedServer.java b/src/main/java/net/minecraft/server/DedicatedServer.java
|
||||||
index 5fee3f9a9..d9dee47f8 100644
|
index 0411fb3ee..a74fae9ed 100644
|
||||||
--- a/src/main/java/net/minecraft/server/DedicatedServer.java
|
--- a/src/main/java/net/minecraft/server/DedicatedServer.java
|
||||||
+++ b/src/main/java/net/minecraft/server/DedicatedServer.java
|
+++ b/src/main/java/net/minecraft/server/DedicatedServer.java
|
||||||
@@ -44,7 +44,7 @@ public class DedicatedServer extends MinecraftServer implements IMinecraftServer
|
@@ -44,7 +44,7 @@ public class DedicatedServer extends MinecraftServer implements IMinecraftServer
|
||||||
|
@ -18,7 +18,7 @@ index 5fee3f9a9..d9dee47f8 100644
|
||||||
private RemoteStatusListener remoteStatusListener;
|
private RemoteStatusListener remoteStatusListener;
|
||||||
public final RemoteControlCommandListener remoteControlCommandListener;
|
public final RemoteControlCommandListener remoteControlCommandListener;
|
||||||
private RemoteControlListener remoteControlListener;
|
private RemoteControlListener remoteControlListener;
|
||||||
@@ -449,8 +449,10 @@ public class DedicatedServer extends MinecraftServer implements IMinecraftServer
|
@@ -447,8 +447,10 @@ public class DedicatedServer extends MinecraftServer implements IMinecraftServer
|
||||||
|
|
||||||
public void handleCommandQueue() {
|
public void handleCommandQueue() {
|
||||||
MinecraftTimings.serverCommandTimer.startTiming(); // Spigot
|
MinecraftTimings.serverCommandTimer.startTiming(); // Spigot
|
||||||
|
@ -32,5 +32,5 @@ index 5fee3f9a9..d9dee47f8 100644
|
||||||
// CraftBukkit start - ServerCommand for preprocessing
|
// CraftBukkit start - ServerCommand for preprocessing
|
||||||
ServerCommandEvent event = new ServerCommandEvent(console, servercommand.command);
|
ServerCommandEvent event = new ServerCommandEvent(console, servercommand.command);
|
||||||
--
|
--
|
||||||
2.24.0
|
2.25.0.windows.1
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue