com.flobi.utility
Class functions

java.lang.Object
  extended by com.flobi.utility.functions

public class functions
extends java.lang.Object


Constructor Summary
functions()
           
 
Method Summary
static void depositPlayer(java.lang.String playerName, double unsafeMoney)
           
static java.lang.String formatAmount(double unsafeMoney)
           
static java.lang.String formatAmount(long safeMoney)
           
static int getAmount(java.lang.String playerName, org.bukkit.inventory.ItemStack compareItem)
           
static long getSafeMoney(java.lang.Double money)
           
static double getUnsafeMoney(long money)
           
static boolean hasAmount(java.lang.String playerName, int amount, org.bukkit.inventory.ItemStack compareItem)
           
static boolean isSameItem(org.bukkit.inventory.ItemStack item1, org.bukkit.inventory.ItemStack item2)
           
static boolean withdrawPlayer(java.lang.String playerName, double unsafeMoney)
           
static boolean withdrawPlayer(java.lang.String playerName, long safeMoney)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

functions

public functions()
Method Detail

isSameItem

public static boolean isSameItem(org.bukkit.inventory.ItemStack item1,
                                 org.bukkit.inventory.ItemStack item2)

hasAmount

public static boolean hasAmount(java.lang.String playerName,
                                int amount,
                                org.bukkit.inventory.ItemStack compareItem)

getAmount

public static int getAmount(java.lang.String playerName,
                            org.bukkit.inventory.ItemStack compareItem)

formatAmount

public static java.lang.String formatAmount(long safeMoney)

formatAmount

public static java.lang.String formatAmount(double unsafeMoney)

withdrawPlayer

public static boolean withdrawPlayer(java.lang.String playerName,
                                     long safeMoney)

withdrawPlayer

public static boolean withdrawPlayer(java.lang.String playerName,
                                     double unsafeMoney)

depositPlayer

public static void depositPlayer(java.lang.String playerName,
                                 double unsafeMoney)

getSafeMoney

public static long getSafeMoney(java.lang.Double money)

getUnsafeMoney

public static double getUnsafeMoney(long money)