diff --git a/src/net/milkbowl/vault/economy/plugins/Economy_GoldenChestEconomy.java b/src/net/milkbowl/vault/economy/plugins/Economy_GoldenChestEconomy.java index b0a2554..1555d22 100644 --- a/src/net/milkbowl/vault/economy/plugins/Economy_GoldenChestEconomy.java +++ b/src/net/milkbowl/vault/economy/plugins/Economy_GoldenChestEconomy.java @@ -44,7 +44,7 @@ public class Economy_GoldenChestEconomy implements Economy{ Bukkit.getServer().getPluginManager().registerEvents(new EconomyServerListener(this), plugin); // Load Plugin in case it was loaded before if (economy == null) { - Plugin ec = plugin.getServer().getPluginManager().getPlugin("GoldIsMoney"); + Plugin ec = plugin.getServer().getPluginManager().getPlugin("GoldenChestEconomy"); if (ec != null && ec.isEnabled() && ec.getClass().getName().equals("me.igwb.GoldenChest.GoldenChestEconomy")) { economy = (GoldenChestEconomy) ec; log.info(String.format("[%s][Economy] %s hooked.", plugin.getDescription().getName(), name)); diff --git a/src/net/milkbowl/vault/item/ItemInfo.java b/src/net/milkbowl/vault/item/ItemInfo.java index 94be5a7..deeda9b 100644 --- a/src/net/milkbowl/vault/item/ItemInfo.java +++ b/src/net/milkbowl/vault/item/ItemInfo.java @@ -51,6 +51,7 @@ public class ItemInfo { return material.getMaxStackSize(); } + @Deprecated public int getId() { return material.getId(); } @@ -83,6 +84,7 @@ public class ItemInfo { return new ItemStack(this.material, 1, subTypeId); } + @SuppressWarnings("deprecation") @Override public String toString() { return String.format("%s[%d:%d]", name, material.getId(), subTypeId); diff --git a/src/net/milkbowl/vault/item/Items.java b/src/net/milkbowl/vault/item/Items.java index d640717..b3a8f29 100644 --- a/src/net/milkbowl/vault/item/Items.java +++ b/src/net/milkbowl/vault/item/Items.java @@ -625,10 +625,12 @@ public class Items { items.add(new ItemInfo("Pufferfish", new String[][]{{"fish", "puff"}, {"fish", "blo"}, {"fish", "glob"}}, Material.RAW_FISH, (short) 3)); } + @Deprecated public static ItemInfo itemById(int typeId) { return itemByType(Material.getMaterial(typeId), (short) 0); } + @Deprecated public static ItemInfo itemById(int typeId, short subType) { return itemByType(Material.getMaterial(typeId), subType); }