makePurchase
public boolean makePurchase(org.bukkit.entity.Player player,
int amount)
This method will attempt to make a purchase for the player. If the purchase is successful, the player will have the money withdrawn from their inventory and the appropriate change given
- Parameters:
player - The player involved in the purchaseamount - The amount the item costs that the player is attempting to purchase
- Returns:
- This method will return true unless the player doesn't have enough money, or their inventory didn't have enough money to contain the change