Changed to pluginmanager direct for enabling plugins

By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
CraftBukkit/Spigot 2011-01-03 02:40:47 +00:00
parent 8d08cd71c9
commit dc5b6726dc

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);