Class VaultEconomyBridge
java.lang.Object
dev.crafty.core.bridge.economy.vault.VaultEconomyBridge
- All Implemented Interfaces:
Bridge
,EconomyBridge
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if this bridge can be registered.void
Deposits a specified amount to the player's balance.double
getBalance
(UUID player) Retrieves the balance of the specified player.getName()
Returns the unique name of this bridge instance.void
Withdraws a specified amount from the player's balance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.crafty.core.bridge.Bridge
pluginEnabled
Methods inherited from interface dev.crafty.core.bridge.economy.EconomyBridge
bridgeName
-
Constructor Details
-
VaultEconomyBridge
public VaultEconomyBridge()
-
-
Method Details
-
getBalance
Description copied from interface:EconomyBridge
Retrieves the balance of the specified player.- Specified by:
getBalance
in interfaceEconomyBridge
- Parameters:
player
- the UUID of the player whose balance is to be retrieved- Returns:
- the balance of the player
-
withdraw
Description copied from interface:EconomyBridge
Withdraws a specified amount from the player's balance.- Specified by:
withdraw
in interfaceEconomyBridge
- Parameters:
player
- the UUID of the playeramount
- the amount to withdraw
-
deposit
Description copied from interface:EconomyBridge
Deposits a specified amount to the player's balance.- Specified by:
deposit
in interfaceEconomyBridge
- Parameters:
player
- the UUID of the playeramount
- the amount to deposit
-
getName
Description copied from interface:Bridge
Returns the unique name of this bridge instance. -
canRegister
public boolean canRegister()Description copied from interface:Bridge
Checks if this bridge can be registered.- Specified by:
canRegister
in interfaceBridge
- Returns:
- true if the bridge can be registered, false otherwise
-