Enum Class ReloadPhase

java.lang.Object
java.lang.Enum<ReloadPhase>
com.ordwen.odailyquests.reload.ReloadPhase
All Implemented Interfaces:
Serializable, Comparable<ReloadPhase>, Constable

public enum ReloadPhase extends Enum<ReloadPhase>
Represents the different phases of an ODailyQuests reload cycle.

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
  • Enum Constant Details

    • FILES_LOADED

      public static final ReloadPhase 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

      public static final ReloadPhase CONFIGS_LOADED
      Configurations have been registered and loaded.

      At this stage, configuration values can safely be read by components.

    • DATABASE_LOADED

      public static final ReloadPhase DATABASE_LOADED
      Database layer has been initialized or refreshed.

      At this stage, database queries should be available again.

    • CONTENT_LOADED

      public static final ReloadPhase 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

      public static final ReloadPhase 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

      public static final ReloadPhase 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

      public static final ReloadPhase RELOAD_COMPLETE
      Reload sequence is complete.

      This is the final phase of the reload lifecycle.

  • Method Details

    • values

      public static ReloadPhase[] 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

      public static ReloadPhase valueOf(String name)
      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 name
      NullPointerException - if the argument is null