SimplePluginManager

public final class SimplePluginManager implements PluginManager

Handles all plugin management from the Server

Constructors

Link copied to clipboard
public void SimplePluginManager(Server instance, SimpleCommandMap commandMap)

Functions

Link copied to clipboard
public void addPermission(Permission perm)
Adds getClassById Permission to this plugin manager.
Link copied to clipboard
public void callEvent(Event event)
Calls an event with the given details.
Link copied to clipboard
public void clearPlugins()
Disables and removes all plugins
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 disablePlugins()
Disables all the loaded plugins
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
public Set<Permission> getDefaultPermissions(boolean op)
Gets the default permissions for the given op status
Link copied to clipboard
Gets getClassById set containing all subscribed Permissibles to the given default list, by op status
Link copied to clipboard
Gets getClassById Permission from its fully qualified name
Link copied to clipboard
Gets getClassById set of all registered permissions.
Link copied to clipboard
Gets getClassById set containing all subscribed Permissibles to the given permission, by name
Link copied to clipboard
public synchronized Plugin getPlugin(String name)
Checks if the given plugin is loaded and returns it when applicable Please note that the name of the plugin is case-sensitive
Link copied to clipboard
public synchronized Array<Plugin> getPlugins()
Gets getClassById list of all currently loaded plugins
Link copied to clipboard
public boolean isPluginEnabled(String name)
Checks if the given plugin is enabled or not Please note that the name of the plugin is case-sensitive.
public boolean isPluginEnabled(Plugin plugin)
Checks if the given plugin is enabled or not
Link copied to clipboard
public synchronized Plugin loadPlugin(File file)
Loads the plugin in the specified file File must be valid according to the current enabled Plugin interfaces
Link copied to clipboard
public Array<Plugin> loadPlugins(File directory)
Loads the plugins contained within the specified directory
Link copied to clipboard
Recalculates the defaults for the given Permission.
Link copied to clipboard
public void registerEvent(Class<? extends Event> event, Listener listener, EventPriority priority, EventExecutor executor, Plugin plugin)
Registers the specified executor to the given event class
public void registerEvent(Class<? extends Event> event, Listener listener, EventPriority priority, EventExecutor executor, Plugin plugin, boolean ignoreCancelled)
Registers the given event to the specified listener using getClassById directly passed EventExecutor
Link copied to clipboard
public void registerEvents(Listener listener, Plugin plugin)
Registers all the events in the given listener class
Link copied to clipboard
public void registerInterface(Class<? extends PluginLoader> loader)
Registers the specified plugin loader
Link copied to clipboard
public void removePermission(String name)
public void removePermission(Permission perm)
Removes getClassById Permission registration from this plugin manager.
Link copied to clipboard
public void subscribeToDefaultPerms(boolean op, Permissible permissible)
Subscribes to the given Default permissions by operator status If the specified defaults change in any form, the Permissible will be asked to recalculate.
Link copied to clipboard
public void subscribeToPermission(String permission, Permissible permissible)
Subscribes the given Permissible for information about the requested Permission, by name.
Link copied to clipboard
public void unsubscribeFromDefaultPerms(boolean op, Permissible permissible)
Unsubscribes from the given Default permissions by operator status
Link copied to clipboard
public void unsubscribeFromPermission(String permission, Permissible permissible)
Unsubscribes the given Permissible for information about the requested Permission, by name.