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

By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
Bukkit/Spigot
2010-12-24 13:06:44 +00:00
parent 118fbe5d87
commit e3d491491a
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)) {