Class VaultEconomyProvider

java.lang.Object
com.earth2me.essentials.economy.vault.VaultEconomyProvider
All Implemented Interfaces:
net.milkbowl.vault.economy.Economy

public class VaultEconomyProvider extends Object implements net.milkbowl.vault.economy.Economy
A goddamn Vault adapter, what more do you want? Provides access to the EssentialsX economy for plugins that use the Vault API.

Developer note: for accessing Essentials/Vault economy functions from EssentialsX code, see User.

  • Constructor Details

    • VaultEconomyProvider

      public VaultEconomyProvider(Essentials essentials)
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface net.milkbowl.vault.economy.Economy
    • getName

      public String getName()
      Specified by:
      getName in interface net.milkbowl.vault.economy.Economy
    • hasBankSupport

      public boolean hasBankSupport()
      Specified by:
      hasBankSupport in interface net.milkbowl.vault.economy.Economy
    • fractionalDigits

      public int fractionalDigits()
      Specified by:
      fractionalDigits in interface net.milkbowl.vault.economy.Economy
    • format

      public String format(double amount)
      Specified by:
      format in interface net.milkbowl.vault.economy.Economy
    • currencyNamePlural

      public String currencyNamePlural()
      Specified by:
      currencyNamePlural in interface net.milkbowl.vault.economy.Economy
    • currencyNameSingular

      public String currencyNameSingular()
      Specified by:
      currencyNameSingular in interface net.milkbowl.vault.economy.Economy
    • hasAccount

      public boolean hasAccount(String playerName)
      Specified by:
      hasAccount in interface net.milkbowl.vault.economy.Economy
    • hasAccount

      public boolean hasAccount(OfflinePlayer player)
      Specified by:
      hasAccount in interface net.milkbowl.vault.economy.Economy
    • hasAccount

      public boolean hasAccount(String playerName, String worldName)
      Specified by:
      hasAccount in interface net.milkbowl.vault.economy.Economy
    • hasAccount

      public boolean hasAccount(OfflinePlayer player, String worldName)
      Specified by:
      hasAccount in interface net.milkbowl.vault.economy.Economy
    • getBalance

      public double getBalance(String playerName)
      Specified by:
      getBalance in interface net.milkbowl.vault.economy.Economy
    • getBalance

      public double getBalance(OfflinePlayer player)
      Specified by:
      getBalance in interface net.milkbowl.vault.economy.Economy
    • getBalance

      public double getBalance(String playerName, String world)
      Specified by:
      getBalance in interface net.milkbowl.vault.economy.Economy
    • getBalance

      public double getBalance(OfflinePlayer player, String world)
      Specified by:
      getBalance in interface net.milkbowl.vault.economy.Economy
    • has

      public boolean has(String playerName, double amount)
      Specified by:
      has in interface net.milkbowl.vault.economy.Economy
    • has

      public boolean has(OfflinePlayer player, double amount)
      Specified by:
      has in interface net.milkbowl.vault.economy.Economy
    • has

      public boolean has(String playerName, String worldName, double amount)
      Specified by:
      has in interface net.milkbowl.vault.economy.Economy
    • has

      public boolean has(OfflinePlayer player, String worldName, double amount)
      Specified by:
      has in interface net.milkbowl.vault.economy.Economy
    • withdrawPlayer

      public net.milkbowl.vault.economy.EconomyResponse withdrawPlayer(String playerName, double amount)
      Specified by:
      withdrawPlayer in interface net.milkbowl.vault.economy.Economy
    • withdrawPlayer

      public net.milkbowl.vault.economy.EconomyResponse withdrawPlayer(OfflinePlayer player, double amount)
      Specified by:
      withdrawPlayer in interface net.milkbowl.vault.economy.Economy
    • withdrawPlayer

      public net.milkbowl.vault.economy.EconomyResponse withdrawPlayer(String playerName, String worldName, double amount)
      Specified by:
      withdrawPlayer in interface net.milkbowl.vault.economy.Economy
    • withdrawPlayer

      public net.milkbowl.vault.economy.EconomyResponse withdrawPlayer(OfflinePlayer player, String worldName, double amount)
      Specified by:
      withdrawPlayer in interface net.milkbowl.vault.economy.Economy
    • depositPlayer

      public net.milkbowl.vault.economy.EconomyResponse depositPlayer(String playerName, double amount)
      Specified by:
      depositPlayer in interface net.milkbowl.vault.economy.Economy
    • depositPlayer

      public net.milkbowl.vault.economy.EconomyResponse depositPlayer(OfflinePlayer player, double amount)
      Specified by:
      depositPlayer in interface net.milkbowl.vault.economy.Economy
    • depositPlayer

      public net.milkbowl.vault.economy.EconomyResponse depositPlayer(String playerName, String worldName, double amount)
      Specified by:
      depositPlayer in interface net.milkbowl.vault.economy.Economy
    • depositPlayer

      public net.milkbowl.vault.economy.EconomyResponse depositPlayer(OfflinePlayer player, String worldName, double amount)
      Specified by:
      depositPlayer in interface net.milkbowl.vault.economy.Economy
    • createPlayerAccount

      public boolean createPlayerAccount(String playerName)
      Specified by:
      createPlayerAccount in interface net.milkbowl.vault.economy.Economy
    • createPlayerAccount

      public boolean createPlayerAccount(OfflinePlayer player)
      Specified by:
      createPlayerAccount in interface net.milkbowl.vault.economy.Economy
    • createPlayerAccount

      public boolean createPlayerAccount(String playerName, String worldName)
      Specified by:
      createPlayerAccount in interface net.milkbowl.vault.economy.Economy
    • createPlayerAccount

      public boolean createPlayerAccount(OfflinePlayer player, String worldName)
      Specified by:
      createPlayerAccount in interface net.milkbowl.vault.economy.Economy
    • createBank

      public net.milkbowl.vault.economy.EconomyResponse createBank(String name, String player)
      Specified by:
      createBank in interface net.milkbowl.vault.economy.Economy
    • createBank

      public net.milkbowl.vault.economy.EconomyResponse createBank(String name, OfflinePlayer player)
      Specified by:
      createBank in interface net.milkbowl.vault.economy.Economy
    • deleteBank

      public net.milkbowl.vault.economy.EconomyResponse deleteBank(String name)
      Specified by:
      deleteBank in interface net.milkbowl.vault.economy.Economy
    • bankBalance

      public net.milkbowl.vault.economy.EconomyResponse bankBalance(String name)
      Specified by:
      bankBalance in interface net.milkbowl.vault.economy.Economy
    • bankHas

      public net.milkbowl.vault.economy.EconomyResponse bankHas(String name, double amount)
      Specified by:
      bankHas in interface net.milkbowl.vault.economy.Economy
    • bankWithdraw

      public net.milkbowl.vault.economy.EconomyResponse bankWithdraw(String name, double amount)
      Specified by:
      bankWithdraw in interface net.milkbowl.vault.economy.Economy
    • bankDeposit

      public net.milkbowl.vault.economy.EconomyResponse bankDeposit(String name, double amount)
      Specified by:
      bankDeposit in interface net.milkbowl.vault.economy.Economy
    • isBankOwner

      public net.milkbowl.vault.economy.EconomyResponse isBankOwner(String name, String playerName)
      Specified by:
      isBankOwner in interface net.milkbowl.vault.economy.Economy
    • isBankOwner

      public net.milkbowl.vault.economy.EconomyResponse isBankOwner(String name, OfflinePlayer player)
      Specified by:
      isBankOwner in interface net.milkbowl.vault.economy.Economy
    • isBankMember

      public net.milkbowl.vault.economy.EconomyResponse isBankMember(String name, String playerName)
      Specified by:
      isBankMember in interface net.milkbowl.vault.economy.Economy
    • isBankMember

      public net.milkbowl.vault.economy.EconomyResponse isBankMember(String name, OfflinePlayer player)
      Specified by:
      isBankMember in interface net.milkbowl.vault.economy.Economy
    • getBanks

      public List<String> getBanks()
      Specified by:
      getBanks in interface net.milkbowl.vault.economy.Economy