public class Purchase
extends java.lang.Object
| Constructor and Description |
|---|
Purchase() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
makePurchase(org.bukkit.entity.Player player,
int amount)
This method will attempt to make a purchase for the player.
|
int |
makeSale(org.bukkit.entity.Player player,
int amount)
This method will attempt to add the money gained from whatever purchase they are trying to make into the player's inventory.
|
public boolean makePurchase(org.bukkit.entity.Player player,
int amount)
player - The player involved in the purchaseamount - The amount the item costs that the player is attempting to purchasepublic int makeSale(org.bukkit.entity.Player player,
int amount)
player - The player attempting to buy somethingamount - The amount that item costs