Package me.sciguymjm.uberenchant.utils
Class EconomyUtils
java.lang.Object
me.sciguymjm.uberenchant.utils.EconomyUtils
Economy related utilities.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic doublegetBalance(org.bukkit.entity.Player player) For internal use.static doubleFor internal use.static net.milkbowl.vault.economy.EconomyFor internal use.static booleanhas(org.bukkit.entity.Player player, double cost) For internal use.static booleanFor internal use.static net.milkbowl.vault.economy.EconomyResponsewithdraw(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
-