diff --git a/Spigot-Server-Patches/0018-Show-Paper-in-client-crashes-server-lists-and-Mojang.patch b/Spigot-Server-Patches/0018-Show-Paper-in-client-crashes-server-lists-and-Mojang.patch index 500d75566..a1eeeefcf 100644 --- a/Spigot-Server-Patches/0018-Show-Paper-in-client-crashes-server-lists-and-Mojang.patch +++ b/Spigot-Server-Patches/0018-Show-Paper-in-client-crashes-server-lists-and-Mojang.patch @@ -1,4 +1,4 @@ -From c4769bc62dc29d598093e20269fd1f8213cb0f20 Mon Sep 17 00:00:00 2001 +From 5fb24d96351092f0b6880a8e0f30de8fa517ba6e Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Tue, 1 Mar 2016 14:32:43 -0600 Subject: [PATCH] Show 'Paper' in client crashes, server lists, and Mojang @@ -46,10 +46,10 @@ index 3f27fe6..52155e8 100644 private final String bukkitVersion = Versioning.getBukkitVersion(); private final Logger logger = Logger.getLogger("Minecraft"); diff --git a/src/main/java/org/spigotmc/WatchdogThread.java b/src/main/java/org/spigotmc/WatchdogThread.java -index 94a3d42..3ed983c 100644 +index 94a3d42..6898b56 100644 --- a/src/main/java/org/spigotmc/WatchdogThread.java +++ b/src/main/java/org/spigotmc/WatchdogThread.java -@@ -19,7 +19,7 @@ public class WatchdogThread extends Thread +@@ -19,14 +19,14 @@ public class WatchdogThread extends Thread private WatchdogThread(long timeoutTime, boolean restart) { @@ -58,6 +58,14 @@ index 94a3d42..3ed983c 100644 this.timeoutTime = timeoutTime; this.restart = restart; } + + public static void doStart(int timeoutTime, boolean restart) + { +- if ( instance == null ) ++ if ( !Boolean.getBoolean("disable.watchdog") && instance == null ) // Paper - Add property to disable + { + instance = new WatchdogThread( timeoutTime * 1000L, restart ); + instance.start(); @@ -56,9 +56,9 @@ public class WatchdogThread extends Thread { Logger log = Bukkit.getServer().getLogger(); @@ -80,5 +88,5 @@ index 94a3d42..3ed983c 100644 log.log( Level.SEVERE, "------------------------------" ); // -- -2.8.1 +2.8.2.windows.1