@@ -1,4 +1,4 @@
|
||||
From e09cbea98b0a13596e4c88b797bddeed8bf1a883 Mon Sep 17 00:00:00 2001
|
||||
From 9cb6e8e5ee6083bf3d3d76cf01d6d56635b16deb Mon Sep 17 00:00:00 2001
|
||||
From: md_5 <md_5@live.com.au>
|
||||
Date: Sat, 23 Feb 2013 12:33:20 +1100
|
||||
Subject: [PATCH] Watchdog Thread.
|
||||
@@ -26,7 +26,7 @@ index 16e3596..883c3b5 100644
|
||||
}
|
||||
diff --git a/src/main/java/org/spigotmc/RestartCommand.java b/src/main/java/org/spigotmc/RestartCommand.java
|
||||
new file mode 100644
|
||||
index 0000000..2d330fc
|
||||
index 0000000..917a931
|
||||
--- /dev/null
|
||||
+++ b/src/main/java/org/spigotmc/RestartCommand.java
|
||||
@@ -0,0 +1,110 @@
|
||||
@@ -83,7 +83,7 @@ index 0000000..2d330fc
|
||||
+ {
|
||||
+ }
|
||||
+ // Close the socket so we can rebind with the new process
|
||||
+ MinecraftServer.getServer().ah().b();
|
||||
+ MinecraftServer.getServer().ai().b();
|
||||
+
|
||||
+ // Give time for it to kick in
|
||||
+ try
|
||||
|
||||
Reference in New Issue
Block a user