Class GravesXModule

java.lang.Object
dev.cwhead.GravesX.module.GravesXModule

public abstract class GravesXModule extends Object
Defines lifecycle hooks for a GravesX module.
  • Constructor Details

    • GravesXModule

      public GravesXModule()
  • Method Details

    • onModuleLoad

      public void onModuleLoad(ModuleContext ctx)
      Called after construction when the module is loaded but not yet enabled.
      Parameters:
      ctx - Module context provided by the host.
    • onModuleEnable

      public void onModuleEnable(ModuleContext ctx)
      Called when the module should become active. Register listeners/commands and start tasks here.
      Parameters:
      ctx - Module context provided by the host.
    • onModuleDisable

      public void onModuleDisable(ModuleContext ctx)
      Called before the module is unloaded. Unregister and release resources here.
      Parameters:
      ctx - Module context provided by the host.