summaryrefslogtreecommitdiffstats
path: root/EssentialsiConomyBridge5/src/com/iConomy/banks.java
diff options
context:
space:
mode:
authorxeology <xeology@e251c2fe-e539-e718-e476-b85c1f46cddb>2011-05-03 04:29:37 +0000
committerxeology <xeology@e251c2fe-e539-e718-e476-b85c1f46cddb>2011-05-03 04:29:37 +0000
commita46bc7448b7defe971139567233d0bc80f69d4ad (patch)
tree28f73fa6bba1b83db632170e9b9bb203676de1df /EssentialsiConomyBridge5/src/com/iConomy/banks.java
parent897810fe411deeae8135109e250424d91aa66170 (diff)
downloadEssentials-a46bc7448b7defe971139567233d0bc80f69d4ad.tar
Essentials-a46bc7448b7defe971139567233d0bc80f69d4ad.tar.gz
Essentials-a46bc7448b7defe971139567233d0bc80f69d4ad.tar.lz
Essentials-a46bc7448b7defe971139567233d0bc80f69d4ad.tar.xz
Essentials-a46bc7448b7defe971139567233d0bc80f69d4ad.zip
Working with ico 5.0 plugins. Not sure about banks . . no plugins to test it with . . . yet! Reverse compatability broken, ico decided to switch packages.
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1327 e251c2fe-e539-e718-e476-b85c1f46cddb
Diffstat (limited to 'EssentialsiConomyBridge5/src/com/iConomy/banks.java')
-rw-r--r--EssentialsiConomyBridge5/src/com/iConomy/banks.java53
1 files changed, 53 insertions, 0 deletions
diff --git a/EssentialsiConomyBridge5/src/com/iConomy/banks.java b/EssentialsiConomyBridge5/src/com/iConomy/banks.java
new file mode 100644
index 000000000..85ffabd80
--- /dev/null
+++ b/EssentialsiConomyBridge5/src/com/iConomy/banks.java
@@ -0,0 +1,53 @@
+
+package com.iConomy;
+
+import com.earth2me.essentials.api.Economy;
+
+
+
+public class banks
+{
+
+
+ public int count(String name){
+ int count=0;
+ int breaker = 0;
+ for (int ctr = 1; breaker != 1; ctr++)
+ {
+ if (ctr == 1)
+ {
+ if (Economy.accountExist(name + "-bank"))
+ {
+ count = count + 1;
+ }
+ else
+ {
+ breaker = 1;
+ }
+ }
+ if (Economy.accountExist(name + "-bank" + Integer.toString(ctr)) && ctr != 1)
+ {
+ count = count + 1;
+ }
+ else
+ {
+ breaker = 1;
+ }
+ }
+
+ return count;
+ }
+
+
+}
+
+
+
+
+
+
+
+
+
+
+