Enum Class ReloadPhase
- All Implemented Interfaces:
Serializable,Comparable<ReloadPhase>,Constable
This enum is used by ODQReloadEvent to indicate which step of the reload
has just been reached, allowing external plugins/integrations to react at the right time
(e.g. reloading their own caches once configs are loaded, reconnecting after the database
is initialized, refreshing GUI content once quests/interfaces are ready, etc.).
- Since:
- 3.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionConfigurations have been registered and loaded.Quests content (categories) and interfaces have been (re)initialized.Database layer has been initialized or refreshed.Plugin files have been loaded (or reloaded) by the FilesManager.Connected players' quests have been loaded back after the reload.Currently connected players' quests have been saved prior to reloading player data.Reload sequence is complete. -
Method Summary
Modifier and TypeMethodDescriptionstatic ReloadPhaseReturns the enum constant of this class with the specified name.static ReloadPhase[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FILES_LOADED
Plugin files have been loaded (or reloaded) by the FilesManager.Typically includes reading YAML/JSON files and preparing resources required by the plugin.
-
CONFIGS_LOADED
Configurations have been registered and loaded.At this stage, configuration values can safely be read by components.
-
DATABASE_LOADED
Database layer has been initialized or refreshed.At this stage, database queries should be available again.
-
CONTENT_LOADED
Quests content (categories) and interfaces have been (re)initialized.This phase is triggered only if required content dependencies are enabled/loaded (ItemsAdder/Oraxen/Nexo checks).
-
PLAYERS_SAVED
Currently connected players' quests have been saved prior to reloading player data.Useful for integrations that want to persist additional per-player state during reload.
-
PLAYERS_LOADED
Connected players' quests have been loaded back after the reload.In the default reload flow, this happens after a short delay.
-
RELOAD_COMPLETE
Reload sequence is complete.This is the final phase of the reload lifecycle.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-