Package dev.crafty.core.bridge.economy
Interface EconomyBridge
- All Superinterfaces:
Bridge
- All Known Implementing Classes:
VaultEconomyBridge
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringReturns the type or category name of this bridge.voidDeposits a specified amount to the player's balance.doublegetBalance(UUID player) Retrieves the balance of the specified player.voidWithdraws 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:
bridgeNamein interfaceBridge- Returns:
- the bridge type name
-