1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-12 09:35:26 +02:00

Cleaned up my format . . .

git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1328 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
xeology
2011-05-03 05:22:03 +00:00
parent a46bc7448b
commit ee192afcc0
6 changed files with 22 additions and 38 deletions

View File

@@ -1,16 +1,13 @@
package com.iConomy; package com.iConomy;
import com.earth2me.essentials.api.Economy; import com.earth2me.essentials.api.Economy;
public class banks public class banks
{ {
public int count(String name)
{
public int count(String name){ int count = 0;
int count=0;
int breaker = 0; int breaker = 0;
for (int ctr = 1; breaker != 1; ctr++) for (int ctr = 1; breaker != 1; ctr++)
{ {
@@ -34,20 +31,7 @@ public class banks
breaker = 1; breaker = 1;
} }
} }
return count; return count;
} }
} }

View File

@@ -21,7 +21,7 @@ public class existCheck
{ {
return true; return true;
} }
double amount=12; double amount = 12;
return false; return false;
} }
} }

View File

@@ -18,7 +18,7 @@ import org.bukkit.plugin.PluginManager;
*/ */
public class iConomy extends JavaPlugin public class iConomy extends JavaPlugin
{ {
public static Bank Bank=null; public static Bank Bank = null;
public static boolean Banking = true; public static boolean Banking = true;
public static boolean BankingMultiple = true; public static boolean BankingMultiple = true;
private static final Logger logger = Logger.getLogger("Minecraft"); private static final Logger logger = Logger.getLogger("Minecraft");
@@ -31,7 +31,7 @@ public class iConomy extends JavaPlugin
@Override @Override
public void onEnable() public void onEnable()
{ {
Bank=new Bank("hello"); Bank = new Bank("hello");
PluginManager pm = this.getServer().getPluginManager(); PluginManager pm = this.getServer().getPluginManager();
Plugin p = pm.getPlugin("Essentials"); Plugin p = pm.getPlugin("Essentials");
if (p != null) if (p != null)
@@ -65,7 +65,7 @@ public class iConomy extends JavaPlugin
{ {
return Economy.format(amount); return Economy.format(amount);
} }
public static String format(String account) public static String format(String account)
{ {
return getAccount(account).getHoldings().toString(); return getAccount(account).getHoldings().toString();
@@ -77,7 +77,7 @@ public class iConomy extends JavaPlugin
} }
public static Account getAccount(String name) public static Account getAccount(String name)
{ {
return Bank.getAccount(name); return Bank.getAccount(name);
} }

View File

@@ -7,7 +7,6 @@ import java.util.ArrayList;
public class Account public class Account
{ {
private String name; private String name;
public Holdings getHoldings() public Holdings getHoldings()
@@ -101,7 +100,5 @@ public class Account
return bank; return bank;
} }
} }

View File

@@ -8,13 +8,13 @@ public class Bank
{ {
private String id = null; private String id = null;
private String name = null; private String name = null;
public Bank(String name) public Bank(String name)
{ {
this.id = name; this.id = name;
this.name = name; this.name = name;
} }
//Fake currency! //Fake currency!
public String getCurrency() public String getCurrency()
{ {

View File

@@ -27,13 +27,16 @@ public class Holdings
this.bankId = id; this.bankId = id;
this.name = name; this.name = name;
} }
public boolean isBank() {
return bank;
}
public double balance() { public boolean isBank()
return get(); {
} return bank;
}
public double balance()
{
return get();
}
public double get() public double get()
{ {