Class ODQReloadEvent

java.lang.Object
org.bukkit.event.Event
com.ordwen.odailyquests.api.events.ODQReloadEvent

public class ODQReloadEvent extends org.bukkit.event.Event
Called when ODailyQuests is reloaded via the plugin reload command.

This event is fired multiple times during a single reload and provides the current ReloadPhase to indicate which part of the reload pipeline has been reached. It allows integrations and add-ons to synchronize their own reload actions with the core plugin.

This event is not cancellable: it is purely informative.

Since:
3.0.0
  • Constructor Details

    • ODQReloadEvent

      public ODQReloadEvent(ODailyQuests core, ReloadPhase phase)
      Constructor for the ODQReloadEvent.
      Parameters:
      core - ODailyQuests instance being reloaded
      phase - current phase of the reload lifecycle
  • Method Details

    • getCore

      public ODailyQuests getCore()
      Get the ODailyQuests instance being reloaded.
      Returns:
      ODailyQuests instance
    • getPhase

      public ReloadPhase getPhase()
      Get the current reload phase.
      Returns:
      ReloadPhase
    • getHandlers

      @NotNull public org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
    • call

      public static void call(ODailyQuests core, ReloadPhase phase)
      Utility method to safely call the event.

      Any exception thrown by listeners is caught to avoid breaking the reload sequence.

      Parameters:
      core - ODailyQuests instance being reloaded
      phase - current phase of the reload lifecycle