PluginLoaderpublic final class JavaPluginLoader extends java.lang.Object implements PluginLoader
| Constructor | Description | 
|---|---|
| JavaPluginLoader(Server instance) | Deprecated. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| java.util.Map<java.lang.Class<? extends Event>,java.util.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 | disablePlugin(Plugin plugin,
             boolean closeClassloader) | Disables the specified plugin | 
| void | enablePlugin(Plugin plugin) | Enables the specified plugin | 
| PluginDescriptionFile | getPluginDescription(java.io.File file) | Loads a PluginDescriptionFile from the specified file | 
| java.util.regex.Pattern[] | getPluginFileFilters() | Returns a list of all filename filters expected by this PluginLoader | 
| Plugin | loadPlugin(java.io.File file) | Loads the plugin contained in the specified file | 
@Deprecated public JavaPluginLoader(Server instance)
instance - the server instancepublic Plugin loadPlugin(java.io.File file) throws InvalidPluginException
PluginLoaderloadPlugin in interface PluginLoaderfile - File to attempt to loadInvalidPluginException - Thrown when the specified file is not a
     pluginpublic PluginDescriptionFile getPluginDescription(java.io.File file) throws InvalidDescriptionException
PluginLoadergetPluginDescription in interface PluginLoaderfile - File to attempt to load fromInvalidDescriptionException - If the plugin description file
     could not be createdpublic java.util.regex.Pattern[] getPluginFileFilters()
PluginLoadergetPluginFileFilters in interface PluginLoaderpublic java.util.Map<java.lang.Class<? extends Event>,java.util.Set<RegisteredListener>> createRegisteredListeners(Listener listener, Plugin plugin)
PluginLoadercreateRegisteredListeners in interface PluginLoaderlistener - The object that will handle the eventual call backplugin - The plugin to use when creating registered listenerspublic 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 disablepublic void disablePlugin(Plugin plugin, boolean closeClassloader)
PluginLoaderAttempting to disable a plugin that is not enabled will have no effect
disablePlugin in interface PluginLoaderplugin - Plugin to disablecloseClassloader - if the classloader for the Plugin should be closedCopyright © 2018. All rights reserved.