me.mjolnir.mineconomy
Class Accounting

java.lang.Object
  extended by me.mjolnir.mineconomy.Accounting

public class Accounting
extends java.lang.Object

Handles reading/writing of the user accounts.

Author:
MjolnirCommando

Constructor Summary
Accounting()
           
 
Method Summary
static boolean containsKey(java.lang.String player, java.io.File file)
          Returns if player is in account file.
static double getBalance(java.lang.String player, java.io.File file)
          Returns the balance of any account.
static void remove(java.lang.String player, java.io.File file)
          Removes an account from the account file.
static void write(java.lang.String player, double startingB, java.io.File file)
          Writes to the account file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Accounting

public Accounting()
Method Detail

containsKey

public static boolean containsKey(java.lang.String player,
                                  java.io.File file)
Returns if player is in account file.

Parameters:
player -
file -
Returns:
true/false

write

public static void write(java.lang.String player,
                         double startingB,
                         java.io.File file)
Writes to the account file.

Parameters:
player -
startingB -
file -

remove

public static void remove(java.lang.String player,
                          java.io.File file)
Removes an account from the account file.

Parameters:
player -
file -

getBalance

public static double getBalance(java.lang.String player,
                                java.io.File file)
Returns the balance of any account.

Parameters:
player -
file -
Returns:
balance