Class ContextManager
java.lang.Object
dev.kitteh.factions.integration.permcontext.ContextManager
- All Implemented Interfaces:
org.bukkit.event.Listener
Plugin-agnostic registration of contexts. Other plugins can hook into this.
-
Method Summary
Modifier and TypeMethodDescriptionGets currently registered contexts.static voidinit(AbstractFactionsPlugin plugin) Should be called by FactionsUUID only.voidonDisable(org.bukkit.event.server.PluginDisableEvent event) static voidregisterContext(Context context) Registers a context.static voidshutdown()Should be called by FactionsUUID only.
-
Method Details
-
init
Should be called by FactionsUUID only.- Parameters:
plugin- the plugin
-
shutdown
public static void shutdown()Should be called by FactionsUUID only. -
getContexts
Gets currently registered contexts.- Returns:
- immutable set of registered contexts
-
registerContext
Registers a context. Should be called after FactionsUUID is loaded or reloaded. Easiest strategy is to run in onEnable and onPluginEnableEvent.- Parameters:
context- context
-
onDisable
public void onDisable(org.bukkit.event.server.PluginDisableEvent event)
-