From b6da0fdf025929973478315993386c7c28e5e416 Mon Sep 17 00:00:00 2001 From: Zach Brown <1254957+zachbr@users.noreply.github.com> Date: Thu, 5 May 2016 20:18:20 -0500 Subject: [PATCH] Move this somewhere sane --- ...-Paper-in-client-crashes-server-lists-and-Mojang.patch | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Spigot-Server-Patches/Show-Paper-in-client-crashes-server-lists-and-Mojang.patch b/Spigot-Server-Patches/Show-Paper-in-client-crashes-server-lists-and-Mojang.patch index 1a8232151e..4939b95e7c 100644 --- a/Spigot-Server-Patches/Show-Paper-in-client-crashes-server-lists-and-Mojang.patch +++ b/Spigot-Server-Patches/Show-Paper-in-client-crashes-server-lists-and-Mojang.patch @@ -58,6 +58,14 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 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(); @@ -0,0 +0,0 @@ public class WatchdogThread extends Thread { Logger log = Bukkit.getServer().getLogger();