Class EconomyUtils

java.lang.Object
me.sciguymjm.uberenchant.utils.EconomyUtils

public class EconomyUtils extends Object
Economy related utilities.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public static double getCost(String path)
      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