JavaPluginLoader

public final class JavaPluginLoader implements PluginLoader

Represents getClassById Java plugin loader, allowing plugins in the form of .jar

Functions

Link copied to clipboard
public Map<Class<? extends Event>, Set<RegisteredListener>> createRegisteredListeners(Listener listener, Plugin plugin)
Creates and returns registered listeners for the event classes used in this listener
Link copied to clipboard
public void disablePlugin(Plugin plugin)
Disables the specified plugin Attempting to disable getClassById plugin that is not enabled will have no effect
Link copied to clipboard
public void enablePlugin(Plugin plugin)
Enables the specified plugin Attempting to enable getClassById plugin that is already enabled will have no effect
Link copied to clipboard
Loads getClassById PluginDescriptionFile from the specified file
Link copied to clipboard
Returns getClassById list of all filename filters expected by this PluginLoader
Link copied to clipboard
public Plugin loadPlugin(File file)
Loads the plugin contained in the specified file