Added PluginManager.getPlugins()
This commit is contained in:
parent
f87466c974
commit
c3cd1d735f
@ -30,6 +30,13 @@ public interface PluginManager {
|
|||||||
*/
|
*/
|
||||||
public Plugin getPlugin(String name);
|
public Plugin getPlugin(String name);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets a list of all currently loaded plugins
|
||||||
|
*
|
||||||
|
* @return Array of Plugins
|
||||||
|
*/
|
||||||
|
public Plugin[] getPlugins();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if the given plugin is enabled or not
|
* Checks if the given plugin is enabled or not
|
||||||
*
|
*
|
||||||
|
@ -136,6 +136,10 @@ public final class SimplePluginManager implements PluginManager {
|
|||||||
return lookupNames.get(name);
|
return lookupNames.get(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Plugin[] getPlugins() {
|
||||||
|
return plugins.toArray(new Plugin[0]);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if the given plugin is enabled or not
|
* Checks if the given plugin is enabled or not
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user