Fix loading plugins.

This commit is contained in:
md_5 2013-01-27 21:22:22 +11:00
parent ed667e2b72
commit f53cbc2ab6

View File

@ -166,11 +166,11 @@ public class PluginManager
Plugin plugin = (Plugin) main.getDeclaredConstructor().newInstance();
plugin.init(desc);
plugins.put(pdf.getName(), plugin);
plugins.put(desc.getName(), plugin);
plugin.onLoad();
ProxyServer.getInstance().getLogger().log(Level.INFO, "Loaded plugin {0} version {1} by {2}", new Object[]
{
plugin.getDescription().getName(), plugin.getDescription().getVersion(), plugin.getDescription().getAuthor()
desc.getName(), desc.getVersion(), desc.getAuthor()
});
}
}