From 5d63eb2ba5a1bded73c92b7e60b0f50c06be6abb Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Mon, 28 Dec 2020 16:06:30 +0100 Subject: [PATCH] Chaos-Patches --- SteamWar-Patches/Disable_BuildVersion.patch | 32 ++++++--------------- 1 file changed, 8 insertions(+), 24 deletions(-) diff --git a/SteamWar-Patches/Disable_BuildVersion.patch b/SteamWar-Patches/Disable_BuildVersion.patch index 51a60c3..133356f 100644 --- a/SteamWar-Patches/Disable_BuildVersion.patch +++ b/SteamWar-Patches/Disable_BuildVersion.patch @@ -4,29 +4,13 @@ Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/src/main/java/org/bukkit/craftbukkit/Main.java b/src/main/java/org/bukkit/craftbukkit/Main.java ---- a/src/main/java/org/bukkit/craftbukkit/Main.java (revision 163eed5a26a0c45590314f401c743ddc8adc92de) -+++ b/src/main/java/org/bukkit/craftbukkit/Main.java (revision 12c3f23057841f2868e5fcf4a4a836b73e52b1bb) -@@ -181,23 +181,6 @@ - System.setProperty(jline.TerminalFactory.JLINE_TERMINAL, jline.UnsupportedTerminal.class.getName()); +--- a/src/main/java/org/bukkit/craftbukkit/Main.java (revision 4461c18816eaad0e773b5c71bf2cf301819f80aa) ++++ b/src/main/java/org/bukkit/craftbukkit/Main.java (revision dc1653b7c4cd3b6d8b2583896ec33ee430908002) +@@ -194,7 +194,6 @@ + System.err.println("*** Error, this build is outdated ***"); + System.err.println("*** Please download a new build as per instructions from https://www.spigotmc.org/go/outdated-spigot ***"); + System.err.println("*** Server will start in 20 seconds ***"); +- Thread.sleep(TimeUnit.SECONDS.toMillis(20)); + } } -- if (options.has("noconsole")) { -- useConsole = false; -- } -- -- if (false && Main.class.getPackage().getImplementationVendor() != null && System.getProperty("IReallyKnowWhatIAmDoingISwear") == null) { -- Date buildDate = new Date(Integer.parseInt(Main.class.getPackage().getImplementationVendor()) * 1000L); -- -- Calendar deadline = Calendar.getInstance(); -- deadline.add(Calendar.DAY_OF_YEAR, -21); -- if (buildDate.before(deadline.getTime())) { -- System.err.println("*** Error, this build is outdated ***"); -- System.err.println("*** Please download a new build as per instructions from https://www.spigotmc.org/go/outdated-spigot ***"); -- System.err.println("*** Server will start in 20 seconds ***"); -- Thread.sleep(TimeUnit.SECONDS.toMillis(20)); -- } -- } -- - System.out.println("Loading libraries, please wait..."); - MinecraftServer.main(options); - } catch (Throwable t) {