|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectme.mjolnir.mineconomy.Accounting
public class Accounting
Handles reading/writing of the user accounts.
| 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 java.lang.String[] |
load()
Returns an Array with the existing accounts and their values. |
static void |
remove(java.lang.String player,
java.io.File file)
Removes an account from the account file. |
static void |
setBalance(java.lang.String player,
double balance,
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 |
|---|
public Accounting()
| Method Detail |
|---|
public static boolean containsKey(java.lang.String player,
java.io.File file)
player - file -
public static void setBalance(java.lang.String player,
double balance,
java.io.File file)
player - balance - file -
public static void remove(java.lang.String player,
java.io.File file)
player - file -
public static double getBalance(java.lang.String player,
java.io.File file)
player - file -
public static java.lang.String[] load()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||