diff options
author | snowleo <snowleo@e251c2fe-e539-e718-e476-b85c1f46cddb> | 2011-06-01 08:12:51 +0000 |
---|---|---|
committer | snowleo <snowleo@e251c2fe-e539-e718-e476-b85c1f46cddb> | 2011-06-01 08:12:51 +0000 |
commit | 1dae594baf04fadc0fd8da1e967728769fb31270 (patch) | |
tree | 7dfc8fe34467f31167efaabb520861d0359ec055 /EssentialsiConomyBridge5/src/com/iConomy/system/Holdings.java | |
parent | e061780ddea956243d4be1b6d926b2618011a61d (diff) | |
download | Essentials-1dae594baf04fadc0fd8da1e967728769fb31270.tar Essentials-1dae594baf04fadc0fd8da1e967728769fb31270.tar.gz Essentials-1dae594baf04fadc0fd8da1e967728769fb31270.tar.lz Essentials-1dae594baf04fadc0fd8da1e967728769fb31270.tar.xz Essentials-1dae594baf04fadc0fd8da1e967728769fb31270.zip |
Removed iConomyBridges. Promote the use of Register instead.
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1551 e251c2fe-e539-e718-e476-b85c1f46cddb
Diffstat (limited to 'EssentialsiConomyBridge5/src/com/iConomy/system/Holdings.java')
-rw-r--r-- | EssentialsiConomyBridge5/src/com/iConomy/system/Holdings.java | 138 |
1 files changed, 0 insertions, 138 deletions
diff --git a/EssentialsiConomyBridge5/src/com/iConomy/system/Holdings.java b/EssentialsiConomyBridge5/src/com/iConomy/system/Holdings.java deleted file mode 100644 index e256ec609..000000000 --- a/EssentialsiConomyBridge5/src/com/iConomy/system/Holdings.java +++ /dev/null @@ -1,138 +0,0 @@ -package com.iConomy.system; - -import com.earth2me.essentials.api.Economy; -import com.iConomy.existCheck; - - -public class Holdings -{ - private String name = ""; - private boolean bank = false; - private String bankId = null; - - public Holdings(String name) - { - this.name = name; - } - - public Holdings(String id, String name) - { - this.bankId = id; - this.name = name; - } - - public Holdings(String id, String name, boolean bank) - { - this.bank = bank; - this.bankId = id; - this.name = name; - } - - public boolean isBank() - { - return bank; - } - - public double balance() - { - return get(); - } - - public double get() - { - if (!existCheck.exist(name)) - { - if (Economy.accountExist(name)) - { - return Economy.getMoney(name); - } - return 0; - } - return Economy.getMoney(name); - } - - public void set(double bal) - { - if (!existCheck.exist(name)) - { - if (Economy.accountExist(name)) - { - Economy.setMoney(name, bal); - } - return; - } - Economy.setMoney(name, bal); - } - - public void add(double money) - { - if (!existCheck.exist(name)) - { - if (Economy.accountExist(name)) - { - Economy.add(name, money); - } - return; - } - Economy.add(name, money); - } - - public void divide(double money) - { - if (!existCheck.exist(name)) - { - if (Economy.accountExist(name)) - { - Economy.divide(name, money); - } - return; - } - Economy.divide(name, money); - } - - public void multiply(double money) - { - if (!existCheck.exist(name)) - { - if (Economy.accountExist(name)) - { - Economy.multiply(name, money); - } - return; - } - Economy.multiply(name, money); - } - - public void subtract(double money) - { - if (!existCheck.exist(name)) - { - if (Economy.accountExist(name)) - { - Economy.subtract(name, money); - } - return; - } - Economy.subtract(name, money); - } - - public void reset() - { - this.set(0); - } - - public boolean hasEnough(double amount) - { - return amount <= this.get(); - } - - public boolean hasOver(double amount) - { - return amount < this.get(); - } - - public boolean isNegative() - { - return this.get() < 0.0; - } -} |