Few additions to Plugin for retrieving the Server and PluginLoader responsible for the plugin

This commit is contained in:
Dinnerbone
2010-12-24 13:06:44 +00:00
parent 3f46b28753
commit 231c037142
2 changed files with 35 additions and 1 deletions

View File

@@ -26,8 +26,9 @@ public final class PluginManager {
* Registers the specified plugin loader
*
* @param loader Class name of the PluginLoader to register
* @throws IllegalArgumentException Thrown when the given Class is not a valid PluginLoader
*/
public void RegisterInterface(Class loader) {
public void RegisterInterface(Class loader) throws IllegalArgumentException {
PluginLoader instance;
if (PluginLoader.class.isAssignableFrom(loader)) {