Interface EconomyBridge

All Superinterfaces:
Bridge
All Known Implementing Classes:
VaultEconomyBridge

public interface EconomyBridge extends Bridge
Bridge for economy plugins.
Since:
1.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    Returns the type or category name of this bridge.
    void
    deposit(UUID player, double amount)
    Deposits a specified amount to the player's balance.
    double
    getBalance(UUID player)
    Retrieves the balance of the specified player.
    void
    withdraw(UUID player, double amount)
    Withdraws a specified amount from the player's balance.

    Methods inherited from interface dev.crafty.core.bridge.Bridge

    canRegister, getName, pluginEnabled
  • Method Details

    • getBalance

      double getBalance(UUID player)
      Retrieves the balance of the specified player.
      Parameters:
      player - the UUID of the player whose balance is to be retrieved
      Returns:
      the balance of the player
    • withdraw

      void withdraw(UUID player, double amount)
      Withdraws a specified amount from the player's balance.
      Parameters:
      player - the UUID of the player
      amount - the amount to withdraw
    • deposit

      void deposit(UUID player, double amount)
      Deposits a specified amount to the player's balance.
      Parameters:
      player - the UUID of the player
      amount - the amount to deposit
    • bridgeName

      default String bridgeName()
      Returns the type or category name of this bridge.
      Specified by:
      bridgeName in interface Bridge
      Returns:
      the bridge type name