ItemStack enchant = new ItemStack(Material.DIAMOND_CHESTPLATE , 1);
enchant.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1);
ItemStack enchant = new ItemStack(Material.DIAMOND_PICKAXE , 1);
enchant.addEnchantment(Enchantment.DIG_SPEED , 1);
Try this
Code:ItemStack enchant = new ItemStack(Material.DIAMOND_CHESTPLATE , 1); enchant.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1); ItemStack enchant = new ItemStack(Material.DIAMOND_PICKAXE , 1); enchant.addEnchantment(Enchantment.DIG_SPEED , 1);
You mean this?Extend the description of the problem, it seems as if it's going to say the method is ambiguous but I cannot read it.
I don't have the intelligence of a rock - I know what he's asking.He's clearly trying to add a UnsafeEnchantment not a regular Enchantment.
Thanks dudeYou can specify an Enchantment as a valid parameter for addUnsafeEnchantment.[DOUBLEPOST=1445866195,1445866151][/DOUBLEPOST]
You're importing the wrong Enchantment. You want to use Bukkit not NMS. Scroll up find import net. blah blah Enchantment and erase it out. Then import org.bukkit.Enchantment or whatever it is.
m8 did i say u did? no, ur nans battlescared
Field tested.factory new
kLOL[DOUBLEPOST=1445872385,1445872350][/DOUBLEPOST]
u killed it.
