Package org.bukkit.plugin.java
Class JavaPluginLoader
java.lang.Object
org.bukkit.plugin.java.JavaPluginLoader
- All Implemented Interfaces:
- PluginLoader
Represents a Java plugin loader, allowing plugins in the form of .jar
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionMap<Class<? extends Event>, Set<RegisteredListener>> createRegisteredListeners(Listener listener, Plugin plugin) Creates and returns registered listeners for the event classes used in this listenervoiddisablePlugin(Plugin plugin) Disables the specified pluginvoidenablePlugin(Plugin plugin) Enables the specified plugingetPluginDescription(File file) Loads a PluginDescriptionFile from the specified filePattern[]Returns a list of all filename filters expected by this PluginLoaderloadPlugin(File file) Loads the plugin contained in the specified file
- 
Field Details- 
pluginParentTimer
 
- 
- 
Constructor Details- 
JavaPluginLoaderDeprecated.This class was not meant to be constructed explicitly- Parameters:
- instance- the server instance
 
 
- 
- 
Method Details- 
loadPluginDescription copied from interface:PluginLoaderLoads the plugin contained in the specified file- Specified by:
- loadPluginin interface- PluginLoader
- Parameters:
- file- File to attempt to load
- Returns:
- Plugin that was contained in the specified file, or null if unsuccessful
- Throws:
- InvalidPluginException- Thrown when the specified file is not a plugin
 
- 
getPluginDescription@NotNull public PluginDescriptionFile getPluginDescription(@NotNull File file) throws InvalidDescriptionException Description copied from interface:PluginLoaderLoads a PluginDescriptionFile from the specified file- Specified by:
- getPluginDescriptionin interface- PluginLoader
- Parameters:
- file- File to attempt to load from
- Returns:
- A new PluginDescriptionFile loaded from the plugin.yml in the specified file
- Throws:
- InvalidDescriptionException- If the plugin description file could not be created
 
- 
getPluginFileFiltersDescription copied from interface:PluginLoaderReturns a list of all filename filters expected by this PluginLoader- Specified by:
- getPluginFileFiltersin interface- PluginLoader
- Returns:
- The filters
 
- 
createRegisteredListeners@NotNull public Map<Class<? extends Event>,Set<RegisteredListener>> createRegisteredListeners(@NotNull Listener listener, @NotNull Plugin plugin) Description copied from interface:PluginLoaderCreates and returns registered listeners for the event classes used in this listener- Specified by:
- createRegisteredListenersin interface- PluginLoader
- Parameters:
- listener- The object that will handle the eventual call back
- plugin- The plugin to use when creating registered listeners
- Returns:
- The registered listeners.
 
- 
enablePluginDescription copied from interface:PluginLoaderEnables the specified pluginAttempting to enable a plugin that is already enabled will have no effect - Specified by:
- enablePluginin interface- PluginLoader
- Parameters:
- plugin- Plugin to enable
 
- 
disablePluginDescription copied from interface:PluginLoaderDisables the specified pluginAttempting to disable a plugin that is not enabled will have no effect - Specified by:
- disablePluginin interface- PluginLoader
- Parameters:
- plugin- Plugin to disable
 
 
-