Interface EconomyManager
public interface EconomyManager
-
Method Summary
Modifier and TypeMethodDescriptionGets a collection of all registered economies.getEconomy(String economyName) Gets an economy by its name.voidLoads all available economies.booleanregisterEconomy(AuctionEconomy economy) Registers a new economy.booleanremoveEconomy(AuctionEconomy economy) Removes an existing economy.
-
Method Details
-
getEconomies
Collection<AuctionEconomy> getEconomies()Gets a collection of all registered economies.- Returns:
- a collection of
AuctionEconomyinstances.
-
registerEconomy
Registers a new economy.- Parameters:
economy- theAuctionEconomyto register.- Returns:
- true if the economy was successfully registered, false otherwise.
-
removeEconomy
Removes an existing economy.- Parameters:
economy- theAuctionEconomyto remove.- Returns:
- true if the economy was successfully removed, false otherwise.
-
getEconomy
Gets an economy by its name.- Parameters:
economyName- the name of the economy to retrieve.- Returns:
- an
Optionalcontaining theAuctionEconomyif found, or an emptyOptionalif not found.
-
loadEconomies
void loadEconomies()Loads all available economies.
-