Class ContextManager

java.lang.Object
dev.kitteh.factions.integration.permcontext.ContextManager
All Implemented Interfaces:
org.bukkit.event.Listener

@NullMarked public class ContextManager extends Object implements org.bukkit.event.Listener
Plugin-agnostic registration of contexts. Other plugins can hook into this.
  • Method Details

    • init

      public static void init(AbstractFactionsPlugin plugin)
      Should be called by FactionsUUID only.
      Parameters:
      plugin - the plugin
    • shutdown

      public static void shutdown()
      Should be called by FactionsUUID only.
    • getContexts

      public static Set<Context> getContexts()
      Gets currently registered contexts.
      Returns:
      immutable set of registered contexts
    • registerContext

      public static void registerContext(Context context)
      Registers a context. Should be called after FactionsUUID is loaded or reloaded. Easiest strategy is to run in onEnable and on PluginEnableEvent.
      Parameters:
      context - context
    • onDisable

      public void onDisable(org.bukkit.event.server.PluginDisableEvent event)