Changed to pluginmanager direct for enabling plugins

This commit is contained in:
Dinnerbone 2011-01-03 02:40:47 +00:00
parent c7b0db5f50
commit 853d00fe98

View File

@ -36,7 +36,7 @@ public final class CraftServer implements Server {
Plugin[] plugins = plugins = pluginManager.loadPlugins(pluginFolder);
for (Plugin plugin : plugins) {
plugin.getPluginLoader().enablePlugin(plugin);
pluginManager.enablePlugin(plugin);
}
} catch (Throwable ex) {
Logger.getLogger(CraftServer.class.getName()).log(Level.SEVERE, "(Is it up to date?)", ex);