From b02fea8cbb8f8df85a6e11c6878e119b77102397 Mon Sep 17 00:00:00 2001 From: xeology Date: Mon, 2 May 2011 22:54:38 +0000 Subject: EXPIRIMENTAL Essentials Iconomy Bridge for iConomy 5.0. This has reverse compatability and is tested but unsure of 5.0 API, needs testing but no 5.0 API plugins yet! git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1324 e251c2fe-e539-e718-e476-b85c1f46cddb --- .../src/com/nijiko/coelho/iConomy/banks.java | 53 ++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 EssentialsiConomyBridge5/src/com/nijiko/coelho/iConomy/banks.java (limited to 'EssentialsiConomyBridge5/src/com/nijiko/coelho/iConomy/banks.java') diff --git a/EssentialsiConomyBridge5/src/com/nijiko/coelho/iConomy/banks.java b/EssentialsiConomyBridge5/src/com/nijiko/coelho/iConomy/banks.java new file mode 100644 index 000000000..a85a66587 --- /dev/null +++ b/EssentialsiConomyBridge5/src/com/nijiko/coelho/iConomy/banks.java @@ -0,0 +1,53 @@ + +package com.nijiko.coelho.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; + } + + +} + + + + + + + + + + + -- cgit v1.2.3