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; } }