public class Price
extends java.lang.Object
Constructor and Description |
---|
Price(java.lang.String type,
java.lang.String value) |
Modifier and Type | Method and Description |
---|---|
void |
give(org.bukkit.entity.Player plr)
Gives the amount of money represented by this Price object to the given Player.
|
boolean |
has(org.bukkit.entity.Player plr)
Checks if the given Player has the amount of money represented by this Price object
|
void |
take(org.bukkit.entity.Player plr)
Takes the amount of money represented by this Price object from the given Player.
|
java.lang.String |
toString()
Gets the formatted String of this Price according to the balanceTypes configuration settings
|
public void give(org.bukkit.entity.Player plr)
plr
- - Target Playerpublic boolean has(org.bukkit.entity.Player plr)
plr
- - Target Playerpublic void take(org.bukkit.entity.Player plr)
plr
- - Target Playerpublic java.lang.String toString()
toString
in class java.lang.Object