Package dev.crafty.core.bridge.economy
Interface EconomyBridge
- All Superinterfaces:
Bridge
- All Known Implementing Classes:
VaultEconomyBridge
Bridge for economy plugins.
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault String
Returns the type or category name of this bridge.void
Deposits a specified amount to the player's balance.double
getBalance
(UUID player) Retrieves the balance of the specified player.void
Withdraws a specified amount from the player's balance.Methods inherited from interface dev.crafty.core.bridge.Bridge
canRegister, getName, pluginEnabled
-
Method Details
-
getBalance
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
Withdraws a specified amount from the player's balance.- Parameters:
player
- the UUID of the playeramount
- the amount to withdraw
-
deposit
Deposits a specified amount to the player's balance.- Parameters:
player
- the UUID of the playeramount
- the amount to deposit
-
bridgeName
Returns the type or category name of this bridge.- Specified by:
bridgeName
in interfaceBridge
- Returns:
- the bridge type name
-