public class Bank
extends java.lang.Object
| Constructor and Description |
|---|
Bank(java.lang.String uuid) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
deposit(int amount)
Adds the specified amount to the player's already existing bank-account
|
int |
getBalance()
Get the player's bank balance
|
int |
getUserID()
Used to fetch a player's bank account ID
|
boolean |
setBalance(int amount)
Completely overrides the player's old bank amount with this one
|
boolean |
withdraw(int amount)
Removes the specified amount to the player's already existing bank-account.
|
public int getBalance()
public boolean setBalance(int amount)
amount - The amount to set the balancepublic boolean deposit(int amount)
amount - The amount to depositpublic boolean withdraw(int amount)
amount - public int getUserID()