Interface IEconomy
public interface IEconomy
Get Economy Methods
-
Method Summary
Modifier and TypeMethodDescriptionvoid
buyAction
(org.bukkit.entity.Player p, double cost) Get player money from balance to buy an item shopdouble
getMoney
(org.bukkit.entity.Player p) Get player money balancevoid
giveMoney
(org.bukkit.entity.Player p, double money) give to player moneyboolean
Check if economy is enabled
-
Method Details
-
isEconomy
boolean isEconomy()Check if economy is enabled -
getMoney
double getMoney(org.bukkit.entity.Player p) Get player money balance- Parameters:
p
- player from which to get the economy balance
-
giveMoney
void giveMoney(org.bukkit.entity.Player p, double money) give to player money- Parameters:
p
- player from which to get the economy balancemoney
- money amount to give
-
buyAction
void buyAction(org.bukkit.entity.Player p, double cost) Get player money from balance to buy an item shop- Parameters:
p
- player from which to get the moneycost
- money amount to take
-