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 Details

    • EconomyProvider

      public EconomyProvider()
  • Method Details

    • name

      public abstract String name()
      Returns:
      The name of the plugin that provides the economy API in use, e.g. "Vault".
    • economyType

      public abstract TownyEconomyHandler.EcoType economyType()
    • mainAdapter

      @Nullable public abstract @Nullable EconomyAdapter mainAdapter()
      Returns:
      The main economy adapter that should be used for all transactions.
    • economyAdapters

      public abstract Collection<EconomyAdapter> economyAdapters()
      Returns:
      All existing registered adapters
    • getEconomyAdapter

      @Nullable public abstract @Nullable EconomyAdapter getEconomyAdapter(@NotNull @NotNull String name)
    • isLegacy

      @Internal public boolean isLegacy()
    • setLegacy

      @Internal public void setLegacy(boolean legacy)