Class VaultEconomy

All Implemented Interfaces:
org.bukkit.event.Listener

public class VaultEconomy extends EconomyHook implements org.bukkit.event.Listener
  • Constructor Details

    • VaultEconomy

      public VaultEconomy(@NotNull @NotNull uSkyBlock plugin)
  • Method Details

    • getCurrenyName

      @NotNull public @NotNull String getCurrenyName()
      Description copied from class: EconomyHook
      Returns the icon or name of the currency in plural form. Defaults to $.
      Overrides:
      getCurrenyName in class EconomyHook
      Returns:
      icon or of the currency
    • getBalance

      public double getBalance(@NotNull @NotNull org.bukkit.OfflinePlayer player)
      Description copied from class: EconomyHook
      Gets balance of an OfflinePlayer
      Specified by:
      getBalance in class EconomyHook
      Parameters:
      player - of the player
      Returns:
      Amount currently held in players account
    • depositPlayer

      public boolean depositPlayer(@NotNull @NotNull org.bukkit.OfflinePlayer player, double amount)
      Description copied from class: EconomyHook
      Deposit an amount to an OfflinePlayer - DO NOT USE NEGATIVE AMOUNTS
      Specified by:
      depositPlayer in class EconomyHook
      Parameters:
      player - to deposit to
      amount - Amount to deposit
      Returns:
      Detailed response of transaction
    • withdrawPlayer

      public boolean withdrawPlayer(@NotNull @NotNull org.bukkit.OfflinePlayer player, double amount)
      Description copied from class: EconomyHook
      Withdraw an amount from an OfflinePlayer - DO NOT USE NEGATIVE AMOUNTS
      Specified by:
      withdrawPlayer in class EconomyHook
      Parameters:
      player - to withdraw from
      amount - Amount to withdraw
      Returns:
      Detailed response of transaction
    • onEconomyRegister

      public void onEconomyRegister(org.bukkit.event.server.ServiceRegisterEvent event)
    • onEconomyUnregister

      public void onEconomyUnregister(org.bukkit.event.server.ServiceUnregisterEvent event)