mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-03 23:07:40 +01:00
Move this somewhere sane
This commit is contained in:
parent
da5cd0a63e
commit
b6da0fdf02
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user