Class VaultEconomyBridge

java.lang.Object
dev.crafty.core.bridge.economy.vault.VaultEconomyBridge
All Implemented Interfaces:
Bridge, EconomyBridge

public class VaultEconomyBridge extends Object implements EconomyBridge
Since:
1.0.0
  • Constructor Details

    • VaultEconomyBridge

      public VaultEconomyBridge()
  • Method Details

    • getBalance

      public double getBalance(UUID player)
      Description copied from interface: EconomyBridge
      Retrieves the balance of the specified player.
      Specified by:
      getBalance in interface EconomyBridge
      Parameters:
      player - the UUID of the player whose balance is to be retrieved
      Returns:
      the balance of the player
    • withdraw

      public void withdraw(UUID player, double amount)
      Description copied from interface: EconomyBridge
      Withdraws a specified amount from the player's balance.
      Specified by:
      withdraw in interface EconomyBridge
      Parameters:
      player - the UUID of the player
      amount - the amount to withdraw
    • deposit

      public void deposit(UUID player, double amount)
      Description copied from interface: EconomyBridge
      Deposits a specified amount to the player's balance.
      Specified by:
      deposit in interface EconomyBridge
      Parameters:
      player - the UUID of the player
      amount - the amount to deposit
    • getName

      public String getName()
      Description copied from interface: Bridge
      Returns the unique name of this bridge instance.
      Specified by:
      getName in interface Bridge
      Returns:
      the name of the bridge
    • canRegister

      public boolean canRegister()
      Description copied from interface: Bridge
      Checks if this bridge can be registered.
      Specified by:
      canRegister in interface Bridge
      Returns:
      true if the bridge can be registered, false otherwise