Class EconomyProvider
java.lang.Object
com.palmergames.bukkit.towny.object.economy.provider.EconomyProvider
- Direct Known Subclasses:
ReserveEconomyProvider
,VaultEconomyProvider
,VaultUnlockedEconomyProvider
@Internal
public abstract sealed class EconomyProvider
extends Object
permits VaultEconomyProvider, ReserveEconomyProvider, VaultUnlockedEconomyProvider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract Collection
<EconomyAdapter> abstract TownyEconomyHandler.EcoType
abstract @Nullable EconomyAdapter
getEconomyAdapter
(@NotNull String name) boolean
isLegacy()
abstract @Nullable EconomyAdapter
abstract String
name()
void
setLegacy
(boolean legacy)
-
Constructor Details
-
EconomyProvider
public EconomyProvider()
-
-
Method Details
-
name
- Returns:
- The name of the plugin that provides the economy API in use, e.g. "Vault".
-
economyType
-
mainAdapter
- Returns:
- The main economy adapter that should be used for all transactions.
-
economyAdapters
- Returns:
- All existing registered adapters
-
getEconomyAdapter
-
isLegacy
@Internal public boolean isLegacy() -
setLegacy
@Internal public void setLegacy(boolean legacy)
-