[SPIGOT-950] Make handlerList requirement really obvious.

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2015-06-01 16:43:22 +10:00
parent bb8989b928
commit ac203b1dbf
2 changed files with 3 additions and 1 deletions

View File

@ -582,7 +582,7 @@ public final class SimplePluginManager implements PluginManager {
&& Event.class.isAssignableFrom(clazz.getSuperclass())) {
return getRegistrationClass(clazz.getSuperclass().asSubclass(Event.class));
} else {
throw new IllegalPluginAccessException("Unable to find handler list for event " + clazz.getName());
throw new IllegalPluginAccessException("Unable to find handler list for event " + clazz.getName() + ". Static getHandlerList method required!");
}
}
}