|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bukkit.plugin.java.JavaPluginLoader
public final class JavaPluginLoader
Represents a Java plugin loader, allowing plugins in the form of .jar
| Constructor Summary | |
|---|---|
JavaPluginLoader(Server instance)
Deprecated. |
|
| Method Summary | |
|---|---|
Map<Class<? extends Event>,Set<RegisteredListener>> |
createRegisteredListeners(Listener listener,
Plugin plugin)
Creates and returns registered listeners for the event classes used in this listener |
void |
disablePlugin(Plugin plugin)
Disables the specified plugin |
void |
enablePlugin(Plugin plugin)
Enables the specified plugin |
PluginDescriptionFile |
getPluginDescription(File file)
Loads a PluginDescriptionFile from the specified file |
Pattern[] |
getPluginFileFilters()
Returns a list of all filename filters expected by this PluginLoader |
Plugin |
loadPlugin(File file)
Loads the plugin contained in the specified file |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Deprecated public JavaPluginLoader(Server instance)
| Method Detail |
|---|
public Plugin loadPlugin(File file)
throws InvalidPluginException
PluginLoader
loadPlugin in interface PluginLoaderfile - File to attempt to load
InvalidPluginException - Thrown when the specified file is not a
plugin
public PluginDescriptionFile getPluginDescription(File file)
throws InvalidDescriptionException
PluginLoader
getPluginDescription in interface PluginLoaderfile - File to attempt to load from
InvalidDescriptionException - If the plugin description file
could not be createdpublic Pattern[] getPluginFileFilters()
PluginLoader
getPluginFileFilters in interface PluginLoader
public Map<Class<? extends Event>,Set<RegisteredListener>> createRegisteredListeners(Listener listener,
Plugin plugin)
PluginLoader
createRegisteredListeners in interface PluginLoaderlistener - The object that will handle the eventual call backplugin - The plugin to use when creating registered listeners
public void enablePlugin(Plugin plugin)
PluginLoaderAttempting to enable a plugin that is already enabled will have no effect
enablePlugin in interface PluginLoaderplugin - Plugin to enablepublic void disablePlugin(Plugin plugin)
PluginLoaderAttempting to disable a plugin that is not enabled will have no effect
disablePlugin in interface PluginLoaderplugin - Plugin to disable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||