mirror of
https://github.com/MilkBowl/Vault.git
synced 2024-12-29 12:28:35 +01:00
future-proof for 1.2.4 wooden plank additions.
This commit is contained in:
parent
9d50820b8c
commit
049f2e1f90
@ -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
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user