@@ -0,0 +1,1120 @@
+/*%0A * To change this template, choose Tools %7C Templates%0A * and open the template in the editor.%0A */%0Apackage net.new_liberty.itemconomy;%0A%0Aimport com.simplyian.easydb.EasyDB;%0Aimport org.bukkit.entity.Player;%0A%0A/**%0A * Represents a bank account of a player.%0A */%0Apublic class BankAccount implements CurrencyHolder %7B%0A%0A    private final String owner;%0A%0A    /**%0A     * C'tor%0A     *%0A     * @param owner%0A     */%0A    public BankAccount(String owner) %7B%0A        this.owner = owner;%0A    %7D%0A%0A    /**%0A     * C'tor%0A     *%0A     * @param owner%0A     */%0A    public BankAccount(Player owner) %7B%0A        this.owner = owner.getName();%0A    %7D%0A%0A    @Override%0A    public int balance() %7B%0A        return (Integer) EasyDB.getDb().get(%22SELECT balance FROM icbank WHERE player = ?%22, 0, owner);%0A    %7D%0A%0A    @Override%0A    public boolean add(int amt) %7B%0A        EasyDB.getDb().update(%22UPDATE icbank SET balance = balance + ? WHERE player = ?%22, amt, owner);%0A        return true;%0A    %7D%0A%0A    @Override%0A    public int remove(int amt) %7B%0A        EasyDB.getDb().update(%22UPDATE icbank SET balance = balance - ? WHERE player = ?%22, amt, owner);%0A        return 0;%0A    %7D%0A%0A%7D%0A

Add bank account system