Package tsp.headdb.economy
Class VaultProvider
java.lang.Object
tsp.headdb.economy.VaultProvider
- All Implemented Interfaces:
BasicEconomyProvider
A
BasicEconomyProvider
for Vault- Since:
- 4.0.0
- Author:
- TheSilentPro
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
canPurchase(org.bukkit.entity.Player player, BigDecimal cost, Consumer<Boolean> result)
Retrieve if the player can purchase a head using this economy providervoid
charge(org.bukkit.entity.Player player, BigDecimal amount, Consumer<Boolean> result)
Charge the player a specific amount using this economy providernet.milkbowl.vault.economy.Economy
void
Convenience method for initializing economy
-
Constructor Details
-
VaultProvider
public VaultProvider()
-
-
Method Details
-
canPurchase
public void canPurchase(org.bukkit.entity.Player player, BigDecimal cost, Consumer<Boolean> result)Description copied from interface:BasicEconomyProvider
Retrieve if the player can purchase a head using this economy provider- Specified by:
canPurchase
in interfaceBasicEconomyProvider
- Parameters:
player
- The playercost
- The costresult
- If the player has enough to purchase
-
charge
Description copied from interface:BasicEconomyProvider
Charge the player a specific amount using this economy provider- Specified by:
charge
in interfaceBasicEconomyProvider
- Parameters:
player
- The playeramount
- The amountresult
- If the transaction was successful
-
initProvider
public void initProvider()Description copied from interface:BasicEconomyProvider
Convenience method for initializing economy- Specified by:
initProvider
in interfaceBasicEconomyProvider
- See Also:
initProvider()
,TreasuryProvider.initProvider()
-
getProvider
public net.milkbowl.vault.economy.Economy getProvider()
-