You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
635 B

package org.poopki.duckdns.user_db;
import org.bukkit.entity.Player;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
public class Account {
private int m_Balance;
public Account(){
m_Balance = 0;
}
public Account(int Balance){
m_Balance = Balance;
}
public int getBalance(){ return m_Balance; }
public boolean credit(int Amount){
m_Balance +=Amount;
return true;
}
public boolean withdraw(int Amount){
if((m_Balance - Amount) > 0){
m_Balance -= Amount;
return true;
}
return false;
}
}