From 11b0d48cd0f03117bd85264fa3ad56a7fb529ac1 Mon Sep 17 00:00:00 2001 From: xeology Date: Wed, 4 May 2011 02:34:44 +0000 Subject: Reverse Compatibility is impossible as of now until a method to dynamically change code (or how it works) in external plugins is found. Removed Redundant and useless packages. git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1335 e251c2fe-e539-e718-e476-b85c1f46cddb --- .../src/com/nijiko/coelho/iConomy/system/Bank.java | 73 ---------------------- 1 file changed, 73 deletions(-) delete mode 100644 EssentialsiConomyBridge5/src/com/nijiko/coelho/iConomy/system/Bank.java (limited to 'EssentialsiConomyBridge5/src/com/nijiko/coelho/iConomy/system/Bank.java') diff --git a/EssentialsiConomyBridge5/src/com/nijiko/coelho/iConomy/system/Bank.java b/EssentialsiConomyBridge5/src/com/nijiko/coelho/iConomy/system/Bank.java deleted file mode 100644 index 1c94fa311..000000000 --- a/EssentialsiConomyBridge5/src/com/nijiko/coelho/iConomy/system/Bank.java +++ /dev/null @@ -1,73 +0,0 @@ -package com.nijiko.coelho.iConomy.system; - -import com.earth2me.essentials.api.Economy; -import com.nijiko.coelho.iConomy.existCheck; - - -public class Bank -{ - private String id = null; - private String name = null; - - public Bank(String name) - { - this.id = name; - this.name = name; - } - //The fake formatter - - public String format(double amount) - { - return Economy.format(amount); - } - - //Fake currency! - public String getCurrency() - { - return Economy.getCurrency(); - } - - //Fake "does player have an account?" but essentials eco doesnt need to make one, so TRUE, unless its an NPC. - public boolean hasAccount(String account) - { - if (!existCheck.exist(account)) - { - if (!Economy.accountExist(account)) - { - Economy.newAccount(account); - } - } - return true; - } - - //simply switches the name to an account type? - public Account getAccount(String name) - { - Account Account = null; - Account = new Account(name); - hasAccount(name); - return Account; - } - - //Fake remove account - public void removeAccount(String name) - { - if (!existCheck.exist(name)) - { - if (Economy.accountExist(name)) - { - Economy.removeAccount(name); - } - return; - } - Economy.setMoney(name, 0); - } - - public void createAccount(String account) - { - if (!Economy.accountExist(account)) - { - Economy.newAccount(account); - } - } -} -- cgit v1.2.3