Class ODailyQuestsAPI

java.lang.Object
com.ordwen.odailyquests.api.ODailyQuestsAPI

public class ODailyQuestsAPI extends Object
This class provides access to the ODailyQuests API, allowing interaction with quest types, player quests, and command registries for both players and admins.
  • Constructor Details

    • ODailyQuestsAPI

      public ODailyQuestsAPI()
  • Method Details

    • getPlayerQuests

      public static PlayerQuests getPlayerQuests(String playerName)
      Retrieves the active quests for a specific player.
      Parameters:
      playerName - the name of the player
      Returns:
      the PlayerQuests object representing the player's active quests
    • getQuestTypeRegistry

      public QuestTypeRegistry getQuestTypeRegistry()
      Retrieves the QuestTypeRegistry used to manage quest types.
      Returns:
      the QuestTypeRegistry object
    • getPlayerCommandRegistry

      public PlayerCommandRegistry getPlayerCommandRegistry()
      Retrieves the PlayerCommandRegistry used to manage player commands.
      Returns:
      the PlayerCommandRegistry object
    • getAdminCommandRegistry

      public AdminCommandRegistry getAdminCommandRegistry()
      Retrieves the AdminCommandRegistry used to manage admin commands.
      Returns:
      the AdminCommandRegistry object
    • registerQuestType

      public static void registerQuestType(String type, Class<? extends AbstractQuest> questClass)
      Registers a new quest type. The registration is only allowed if the plugin is in a state that permits it.
      Parameters:
      type - the type of the quest to be registered
      questClass - the class of the quest type
    • disableRegistration

      public static void disableRegistration()
      Disables further registration of new quest types.
    • getExternalTypes

      public static Map<String,Class<? extends AbstractQuest>> getExternalTypes()
      Retrieves a map of external quest types that have been registered.
      Returns:
      a map of external quest types, where the key is the type name and the value is the quest class