From f53cbc2ab6e781a19fa95e91fa59dd0853dca6c6 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 27 Jan 2013 21:22:22 +1100 Subject: [PATCH] Fix loading plugins. --- .../main/java/net/md_5/bungee/api/plugin/PluginManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/main/java/net/md_5/bungee/api/plugin/PluginManager.java b/api/src/main/java/net/md_5/bungee/api/plugin/PluginManager.java index 07cd79b2..1a5f3865 100644 --- a/api/src/main/java/net/md_5/bungee/api/plugin/PluginManager.java +++ b/api/src/main/java/net/md_5/bungee/api/plugin/PluginManager.java @@ -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() }); } }