From f948acd634ca7d0cfe7d21b24052881b137fb5ed Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 12 Aug 2013 20:31:51 +1000 Subject: [PATCH] Don't loop registering of listeners --- .../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 a46477ffb..d354565d8 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 @@ -310,7 +310,7 @@ public class PluginManager /** * Register a {@link Listener} for receiving called events. Methods in this * Object which wish to receive events must be annotated with the - * {@link Subscribe} annotation. + * {@link EventHandler} annotation. * * @param plugin the owning plugin * @param listener the listener to register events for @@ -321,7 +321,7 @@ public class PluginManager { Preconditions.checkArgument( !method.isAnnotationPresent( Subscribe.class ), "Listener %s has registered using deprecated subscribe annotation! Please update to @EventHandler.", listener ); - eventBus.register( listener ); } + eventBus.register( listener ); } }