I've had this plugin for a bit now. I call it GodSwords. Its simple, just custom recipes that have enchants. Players on my server wanted me to expand the plugin with a Pickaxe as well. No big deal right? I write the new item, just like the other. But guess what! It doesnt work. Perhaps im blind and just missing a mistake, it most likely right in front of me, but anyone see why this segment isnt working? Code (Text): private void superpick() { ItemStack superpick = new ItemStack(Material.DIAMOND_PICKAXE, 1); ItemMeta meta = superpick.getItemMeta(); meta.setDisplayName(ChatColor.GREEN + getConfig().getString("PickName")); meta.setLore(Arrays.asList ("Not even the dwarves are worthy")); superpick.setItemMeta(meta); superpick.addUnsafeEnchantment(Enchantment.DIG_SPEED, 8); superpick.addUnsafeEnchantment(Enchantment.DURABILITY, 4); superpick.addUnsafeEnchantment(Enchantment.LOOT_BONUS_BLOCKS, 4); ShapedRecipe superpickaxe = new ShapedRecipe(superpick); superpickaxe.shape( "@#@", " % ", " % "); superpickaxe.setIngredient('@', Material.DIAMOND_BLOCK); superpickaxe.setIngredient('%', Material.STICK); superpickaxe.setIngredient('#', Material.GOLD_BLOCK); Bukkit.getServer().addRecipe(superpickaxe); }
Is there any errors that print to console? Whats not working? I may be blind but I don't see anything wrong there.
Yea theres no errors at all... No debug messages... Thats why Im confused. I've made many custom recipes like this, but this specific one is the only one not working... I have no clue whats going on.