@@ -1,4 +1,4 @@
|
||||
From 4c3d662a619c6b2d4c5a8d44e607e38c46896eff Mon Sep 17 00:00:00 2001
|
||||
From ff71078f488cce72dd54bec2ac18c9ca848d0bae 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 f114444..399db47 100644
|
||||
} catch (Throwable throwable1) {
|
||||
diff --git a/src/main/java/org/spigotmc/RestartCommand.java b/src/main/java/org/spigotmc/RestartCommand.java
|
||||
new file mode 100644
|
||||
index 0000000..a5c4549
|
||||
index 0000000..c8125c2
|
||||
--- /dev/null
|
||||
+++ b/src/main/java/org/spigotmc/RestartCommand.java
|
||||
@@ -0,0 +1,111 @@
|
||||
@@ -84,7 +84,7 @@ index 0000000..a5c4549
|
||||
+ {
|
||||
+ }
|
||||
+ // Close the socket so we can rebind with the new process
|
||||
+ MinecraftServer.getServer().ae().a();
|
||||
+ MinecraftServer.getServer().ag().a();
|
||||
+
|
||||
+ // Give time for it to kick in
|
||||
+ try
|
||||
|
||||
Reference in New Issue
Block a user