Interface EconomyManager


public interface EconomyManager
  • Method Details

    • getEconomies

      Collection<AuctionEconomy> getEconomies()
      Gets a collection of all registered economies.
      Returns:
      a collection of AuctionEconomy instances.
    • registerEconomy

      boolean registerEconomy(AuctionEconomy economy)
      Registers a new economy.
      Parameters:
      economy - the AuctionEconomy to register.
      Returns:
      true if the economy was successfully registered, false otherwise.
    • removeEconomy

      boolean removeEconomy(AuctionEconomy economy)
      Removes an existing economy.
      Parameters:
      economy - the AuctionEconomy to remove.
      Returns:
      true if the economy was successfully removed, false otherwise.
    • getEconomy

      Optional<AuctionEconomy> getEconomy(String economyName)
      Gets an economy by its name.
      Parameters:
      economyName - the name of the economy to retrieve.
      Returns:
      an Optional containing the AuctionEconomy if found, or an empty Optional if not found.
    • loadEconomies

      void loadEconomies()
      Loads all available economies.