Fix /reload not functioning - thanks AlexM850 for the report.
By: md_5 <md_5@live.com.au>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
From dec4a7481c02848ccfee73ae5800132d7480268f Mon Sep 17 00:00:00 2001
|
||||
From fa195fe18b0b0c58a7c161ebebafed2f75d91da7 Mon Sep 17 00:00:00 2001
|
||||
From: md_5 <md_5@live.com.au>
|
||||
Date: Tue, 2 Jul 2013 09:06:29 +1000
|
||||
Subject: [PATCH] Netty
|
||||
@@ -168,7 +168,7 @@ index 252cea7..d07973d 100644
|
||||
this.b = true;
|
||||
} catch (Exception exception) {
|
||||
diff --git a/src/main/java/org/spigotmc/SpigotConfig.java b/src/main/java/org/spigotmc/SpigotConfig.java
|
||||
index a0a7790..c6ec91b 100644
|
||||
index a0a7790..8efdca6 100644
|
||||
--- a/src/main/java/org/spigotmc/SpigotConfig.java
|
||||
+++ b/src/main/java/org/spigotmc/SpigotConfig.java
|
||||
@@ -6,6 +6,8 @@ import java.io.IOException;
|
||||
@@ -180,7 +180,7 @@ index a0a7790..c6ec91b 100644
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
@@ -148,4 +150,61 @@ public class SpigotConfig
|
||||
@@ -148,4 +150,62 @@ public class SpigotConfig
|
||||
commands.put( "restart", new RestartCommand( "restart" ) );
|
||||
WatchdogThread.doStart( timeoutTime, restartOnCrash );
|
||||
}
|
||||
@@ -203,9 +203,10 @@ index a0a7790..c6ec91b 100644
|
||||
+ }
|
||||
+ public static List<Listener> listeners = new ArrayList<Listener>();
|
||||
+ public static int nettyThreads;
|
||||
+
|
||||
+ private static void listeners()
|
||||
+ {
|
||||
+ listeners.clear(); // We don't rebuild listeners on reload but we should clear them out!
|
||||
+
|
||||
+ Map<String, Object> def = new HashMap<String, Object>();
|
||||
+ def.put( "host", "default" );
|
||||
+ def.put( "port", "default" );
|
||||
|
||||
Reference in New Issue
Block a user