if (confCommand == null)
return;
-
- Plugin p = null;
- // If the conf specifies a plugin, use that
- if (confCommand.plugin != null)
- p = Plugin.findPlugin(confCommand.plugin);
- // Otherwise use the plugin of the target, if any
- else
- p = to.pkg;
+
+ // This isn't really necessary, but is faster than causing the core loader to fail and then fall back
+ // by searching the plugin loaders.
+ Plugin p = to.pkg;
// Use our loader if there is no plugin
ClassLoader cl = p != null ? p.loader : loader;
Class<?> commandClass = cl.loadClass(confCommand.clazz);