Error on .containsEnchantment

Discussion in 'Plugin Development' started by Exloki, Dec 4, 2012.

Thread Status:
Not open for further replies.
  1. I'm trying to use:
    if(p.getInventory().getHelmet().containsEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL)){

    but I get an error on ".containsEnchantment" - "The method containsEnchantment(Enchantment) in the type ItemStack is not applicable for the arguments (Enchantment)"

    Thanks in advance!
     
  2. Offline

    fireblast709

    wrong Enchantment import? (probably not)
     
Thread Status:
Not open for further replies.

Share This Page