PluginManager

public interface PluginManager

Handles all plugin management from the Server

Inheritors

Functions

Link copied to clipboard
public abstract void addPermission(Permission perm)
Adds getClassById Permission to this plugin manager.
Link copied to clipboard
public abstract void callEvent(Event event)
Calls an event with the given details
Link copied to clipboard
public abstract void clearPlugins()
Disables and removes all plugins
Link copied to clipboard
public abstract 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 abstract void disablePlugins()
Disables all the loaded plugins
Link copied to clipboard
public abstract 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 abstract Set<Permission> getDefaultPermissions(boolean op)
Gets the default permissions for the given op status
Link copied to clipboard
public abstract Set<Permissible> getDefaultPermSubscriptions(boolean op)
Gets getClassById set containing all subscribed Permissibles to the given default list, by op status
Link copied to clipboard
public abstract Permission getPermission(String name)
Gets getClassById Permission from its fully qualified name
Link copied to clipboard
public abstract Set<Permission> getPermissions()
Gets getClassById set of all registered permissions.
Link copied to clipboard
public abstract Set<Permissible> getPermissionSubscriptions(String permission)
Gets getClassById set containing all subscribed Permissibles to the given permission, by name
Link copied to clipboard
public abstract 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 abstract Array<Plugin> getPlugins()
Gets getClassById list of all currently loaded plugins
Link copied to clipboard
public abstract 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 abstract boolean isPluginEnabled(Plugin plugin)
Checks if the given plugin is enabled or not
Link copied to clipboard
public abstract 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 abstract Array<Plugin> loadPlugins(File directory)
Loads the plugins contained within the specified directory
Link copied to clipboard
public abstract void recalculatePermissionDefaults(Permission perm)
Recalculates the defaults for the given Permission.
Link copied to clipboard
public abstract void registerEvent(Class<? extends Event> event, Listener listener, EventPriority priority, EventExecutor executor, Plugin plugin)
public abstract void registerEvent(Class<? extends Event> event, Listener listener, EventPriority priority, EventExecutor executor, Plugin plugin, boolean ignoreCancelled)
Registers the specified executor to the given event class
Link copied to clipboard
public abstract void registerEvents(Listener listener, Plugin plugin)
Registers all the events in the given listener class
Link copied to clipboard
public abstract void registerInterface(Class<? extends PluginLoader> loader)
Registers the specified plugin loader
Link copied to clipboard
public abstract void removePermission(String name)
public abstract void removePermission(Permission perm)
Removes getClassById Permission registration from this plugin manager.
Link copied to clipboard
public abstract 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 abstract void subscribeToPermission(String permission, Permissible permissible)
Subscribes the given Permissible for information about the requested Permission, by name.
Link copied to clipboard
public abstract void unsubscribeFromDefaultPerms(boolean op, Permissible permissible)
Unsubscribes from the given Default permissions by operator status
Link copied to clipboard
public abstract void unsubscribeFromPermission(String permission, Permissible permissible)
Unsubscribes the given Permissible for information about the requested Permission, by name.