diff options
author | xeology <xeology@e251c2fe-e539-e718-e476-b85c1f46cddb> | 2011-05-03 05:22:03 +0000 |
---|---|---|
committer | xeology <xeology@e251c2fe-e539-e718-e476-b85c1f46cddb> | 2011-05-03 05:22:03 +0000 |
commit | ee192afcc0901b428ccfd290ae2217e32ccbf1d5 (patch) | |
tree | 53703e91a9055e23c03705638a8f1b322530dada /EssentialsiConomyBridge5/src/com | |
parent | a46bc7448b7defe971139567233d0bc80f69d4ad (diff) | |
download | Essentials-ee192afcc0901b428ccfd290ae2217e32ccbf1d5.tar Essentials-ee192afcc0901b428ccfd290ae2217e32ccbf1d5.tar.gz Essentials-ee192afcc0901b428ccfd290ae2217e32ccbf1d5.tar.lz Essentials-ee192afcc0901b428ccfd290ae2217e32ccbf1d5.tar.xz Essentials-ee192afcc0901b428ccfd290ae2217e32ccbf1d5.zip |
Cleaned up my format . . .
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1328 e251c2fe-e539-e718-e476-b85c1f46cddb
Diffstat (limited to 'EssentialsiConomyBridge5/src/com')
6 files changed, 22 insertions, 38 deletions
diff --git a/EssentialsiConomyBridge5/src/com/iConomy/banks.java b/EssentialsiConomyBridge5/src/com/iConomy/banks.java index 85ffabd80..51c1a27b1 100644 --- a/EssentialsiConomyBridge5/src/com/iConomy/banks.java +++ b/EssentialsiConomyBridge5/src/com/iConomy/banks.java @@ -1,16 +1,13 @@ - package com.iConomy; import com.earth2me.essentials.api.Economy; - public class banks { - - - public int count(String name){ - int count=0; + public int count(String name) + { + int count = 0; int breaker = 0; for (int ctr = 1; breaker != 1; ctr++) { @@ -34,20 +31,7 @@ public class banks breaker = 1; } } - - return count; - } - + return count; + } } - - - - - - - - - - - diff --git a/EssentialsiConomyBridge5/src/com/iConomy/existCheck.java b/EssentialsiConomyBridge5/src/com/iConomy/existCheck.java index 9d765bf3a..0a521fcbf 100644 --- a/EssentialsiConomyBridge5/src/com/iConomy/existCheck.java +++ b/EssentialsiConomyBridge5/src/com/iConomy/existCheck.java @@ -21,7 +21,7 @@ public class existCheck { return true; } - double amount=12; + double amount = 12; return false; } }
\ No newline at end of file diff --git a/EssentialsiConomyBridge5/src/com/iConomy/iConomy.java b/EssentialsiConomyBridge5/src/com/iConomy/iConomy.java index 725e7e5fb..6cf7eb6d8 100644 --- a/EssentialsiConomyBridge5/src/com/iConomy/iConomy.java +++ b/EssentialsiConomyBridge5/src/com/iConomy/iConomy.java @@ -18,7 +18,7 @@ import org.bukkit.plugin.PluginManager; */ public class iConomy extends JavaPlugin { - public static Bank Bank=null; + public static Bank Bank = null; public static boolean Banking = true; public static boolean BankingMultiple = true; private static final Logger logger = Logger.getLogger("Minecraft"); @@ -31,7 +31,7 @@ public class iConomy extends JavaPlugin @Override public void onEnable() { - Bank=new Bank("hello"); + Bank = new Bank("hello"); PluginManager pm = this.getServer().getPluginManager(); Plugin p = pm.getPlugin("Essentials"); if (p != null) @@ -65,7 +65,7 @@ public class iConomy extends JavaPlugin { return Economy.format(amount); } - + public static String format(String account) { return getAccount(account).getHoldings().toString(); @@ -77,7 +77,7 @@ public class iConomy extends JavaPlugin } public static Account getAccount(String name) - { + { return Bank.getAccount(name); } diff --git a/EssentialsiConomyBridge5/src/com/iConomy/system/Account.java b/EssentialsiConomyBridge5/src/com/iConomy/system/Account.java index a4d06a269..0bdb077b4 100644 --- a/EssentialsiConomyBridge5/src/com/iConomy/system/Account.java +++ b/EssentialsiConomyBridge5/src/com/iConomy/system/Account.java @@ -7,7 +7,6 @@ import java.util.ArrayList; public class Account { - private String name; public Holdings getHoldings() @@ -101,7 +100,5 @@ public class Account return bank; - } - - + } } diff --git a/EssentialsiConomyBridge5/src/com/iConomy/system/Bank.java b/EssentialsiConomyBridge5/src/com/iConomy/system/Bank.java index 6708b9e96..ae76c8790 100644 --- a/EssentialsiConomyBridge5/src/com/iConomy/system/Bank.java +++ b/EssentialsiConomyBridge5/src/com/iConomy/system/Bank.java @@ -8,13 +8,13 @@ public class Bank { private String id = null; private String name = null; - + public Bank(String name) { this.id = name; this.name = name; } - + //Fake currency! public String getCurrency() { diff --git a/EssentialsiConomyBridge5/src/com/iConomy/system/Holdings.java b/EssentialsiConomyBridge5/src/com/iConomy/system/Holdings.java index c4a758f7b..e256ec609 100644 --- a/EssentialsiConomyBridge5/src/com/iConomy/system/Holdings.java +++ b/EssentialsiConomyBridge5/src/com/iConomy/system/Holdings.java @@ -27,13 +27,16 @@ public class Holdings this.bankId = id; this.name = name; } - public boolean isBank() { - return bank; - } - public double balance() { - return get(); - } + public boolean isBank() + { + return bank; + } + + public double balance() + { + return get(); + } public double get() { |