Don't instantiate a ReconnectHandler if a plugin has provided one on load

This commit is contained in:
Austin Smith 2013-02-13 09:52:16 -07:00 committed by md_5
parent 379376f0fa
commit a8c60180d7

View File

@ -155,7 +155,10 @@ public class BungeeCord extends ProxyServer
plugins.mkdir();
pluginManager.loadPlugins( plugins );
config.load();
reconnectHandler = new YamlReconnectHandler();
if ( reconnectHandler == null )
{
reconnectHandler = new YamlReconnectHandler();
}
isRunning = true;
pluginManager.enablePlugins();