Enable plugins like they were meant to

This commit is contained in:
md_5 2013-01-22 16:00:13 +11:00
parent ccf44336ce
commit 7e41a6cd70

View File

@ -151,13 +151,14 @@ public class BungeeCord extends ProxyServer
*/ */
public void start() throws IOException public void start() throws IOException
{ {
File plugins = new File("plugins");
plugins.mkdir();
pluginManager.loadPlugins(plugins);
config.load(); config.load();
reconnectHandler = new YamlReconnectHandler(); reconnectHandler = new YamlReconnectHandler();
isRunning = true; isRunning = true;
File plugins = new File("plugins"); pluginManager.enablePlugins();
plugins.mkdir();
pluginManager.loadPlugins(plugins);
for (ListenerInfo info : config.getListeners()) for (ListenerInfo info : config.getListeners())
{ {