mirror of
https://github.com/PaperMC/Paper.git
synced 2025-07-31 20:22:05 -07:00
Move this somewhere sane
This commit is contained in:
@@ -58,6 +58,14 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
this.timeoutTime = timeoutTime;
|
this.timeoutTime = timeoutTime;
|
||||||
this.restart = restart;
|
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
|
@@ -0,0 +0,0 @@ public class WatchdogThread extends Thread
|
||||||
{
|
{
|
||||||
Logger log = Bukkit.getServer().getLogger();
|
Logger log = Bukkit.getServer().getLogger();
|
||||||
|
Reference in New Issue
Block a user