Fix some stuff

By: md_5 <git@md-5.net>
This commit is contained in:
Spigot
2014-04-12 14:27:04 +10:00
parent c47da724d4
commit c3fd1723b1
38 changed files with 51 additions and 73 deletions

View File

@@ -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