Package me.sciguymjm.uberenchant.utils
Class EconomyUtils
java.lang.Object
me.sciguymjm.uberenchant.utils.EconomyUtils
Economy related utilities.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic double
getBalance
(org.bukkit.entity.Player player) For internal use.static double
For internal use.static net.milkbowl.vault.economy.Economy
For internal use.static boolean
has
(org.bukkit.entity.Player player, double cost) For internal use.static boolean
For internal use.static net.milkbowl.vault.economy.EconomyResponse
withdraw
(org.bukkit.entity.Player player, double cost) For internal use.
-
Constructor Details
-
EconomyUtils
public EconomyUtils()
-
-
Method Details
-
hasEconomy
public static boolean hasEconomy()For internal use.- Returns:
- Boolean
-
getEconomy
public static net.milkbowl.vault.economy.Economy getEconomy()For internal use.- Returns:
- Economy
-
getCost
For internal use.- Parameters:
path
- String- Returns:
- Double
-
getBalance
public static double getBalance(org.bukkit.entity.Player player) For internal use.- Returns:
- Double
-
has
public static boolean has(org.bukkit.entity.Player player, double cost) For internal use.- Parameters:
cost
- Double- Returns:
- Boolean
-
withdraw
public static net.milkbowl.vault.economy.EconomyResponse withdraw(org.bukkit.entity.Player player, double cost) For internal use.- Parameters:
cost
- Double- Returns:
- EconomyResponse
-