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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionODQReloadEvent(ODailyQuests core, ReloadPhase phase) Constructor for the ODQReloadEvent. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcall(ODailyQuests core, ReloadPhase phase) Utility method to safely call the event.getCore()Get the ODailyQuests instance being reloaded.static org.bukkit.event.HandlerListorg.bukkit.event.HandlerListgetPhase()Get the current reload phase.Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
ODQReloadEvent
Constructor for the ODQReloadEvent.- Parameters:
core- ODailyQuests instance being reloadedphase- current phase of the reload lifecycle
-
-
Method Details
-
getCore
Get the ODailyQuests instance being reloaded.- Returns:
- ODailyQuests instance
-
getPhase
Get the current reload phase.- Returns:
- ReloadPhase
-
getHandlers
@NotNull public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlersin classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList() -
call
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 reloadedphase- current phase of the reload lifecycle
-