Class VaultEconomyBridge
java.lang.Object
dev.crafty.core.bridge.economy.vault.VaultEconomyBridge
- All Implemented Interfaces:
Bridge,EconomyBridge
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if this bridge can be registered.voidDeposits a specified amount to the player's balance.doublegetBalance(UUID player) Retrieves the balance of the specified player.getName()Returns the unique name of this bridge instance.voidWithdraws 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, waitMethods inherited from interface dev.crafty.core.bridge.Bridge
pluginEnabledMethods inherited from interface dev.crafty.core.bridge.economy.EconomyBridge
bridgeName
-
Constructor Details
-
VaultEconomyBridge
public VaultEconomyBridge()
-
-
Method Details
-
getBalance
Description copied from interface:EconomyBridgeRetrieves the balance of the specified player.- Specified by:
getBalancein 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:EconomyBridgeWithdraws a specified amount from the player's balance.- Specified by:
withdrawin interfaceEconomyBridge- Parameters:
player- the UUID of the playeramount- the amount to withdraw
-
deposit
Description copied from interface:EconomyBridgeDeposits a specified amount to the player's balance.- Specified by:
depositin interfaceEconomyBridge- Parameters:
player- the UUID of the playeramount- the amount to deposit
-
getName
Description copied from interface:BridgeReturns the unique name of this bridge instance. -
canRegister
public boolean canRegister()Description copied from interface:BridgeChecks if this bridge can be registered.- Specified by:
canRegisterin interfaceBridge- Returns:
- true if the bridge can be registered, false otherwise
-