future-proof for 1.2.4 wooden plank additions.

This commit is contained in:
Sleaker 2012-03-22 14:40:42 -07:00
parent 9d50820b8c
commit 049f2e1f90
2 changed files with 6 additions and 2 deletions

View File

@ -120,10 +120,11 @@ public class Economy_iConomy6 implements Economy {
@Override
public double getBalance(String playerName) {
if (accounts.exists(playerName))
if (accounts.exists(playerName)) {
return accounts.get(playerName).getHoldings().getBalance();
else
} else {
return 0;
}
}
@Override

View File

@ -34,6 +34,9 @@ public class Items {
items.add(new ItemInfo("Dirt", new String[][]{{"dirt"}}, Material.DIRT));
items.add(new ItemInfo("Cobblestone", new String[][]{{"cobb", "sto"}, {"cobb"}}, Material.COBBLESTONE));
items.add(new ItemInfo("Wooden Plank", new String[][]{{"wood"}, {"wood", "plank"}}, Material.WOOD));
items.add(new ItemInfo("Pine Plank", new String[][]{{"pine", "plank"}, {"pine", "wood"}}, Material.WOOD, (short) 1));
items.add(new ItemInfo("Birch Plank", new String[][]{{"birch", "plank"}, {"birch", "wood"}}, Material.WOOD, (short) 2));
items.add(new ItemInfo("Jungle Plank", new String[][]{{"jung", "plank"}, {"jung", "wood"}}, Material.WOOD, (short) 3));
items.add(new ItemInfo("Sapling", new String[][]{{"sapling"}}, Material.SAPLING));
items.add(new ItemInfo("Redwood Sapling", new String[][]{{"sapling", "red"}}, Material.SAPLING, (short) 1));
items.add(new ItemInfo("Birch Sapling", new String[][]{{"sapling", "birch"}}, Material.SAPLING, (short) 2));