Changing durability of iron armor... bugged?

Discussion in 'Plugin Development' started by nossr50, Feb 7, 2011.

Thread Status:
Not open for further replies.
  1. Offline


    Hello, in my plugin I allow players to repair. I am finding that using the same method to repair tools/armor, that only IRON armor does not change its durability. As if its bugged or something.

    For example, this piece of code
    player.getItemInHand().setDurability(mcm.getInstance().getArmorRepairAmount(is, player));
    Correctly changes the durability of iron tools, diamond tools, and diamond armor.
    But will not change the durability of iron armor, is there something I don't know about iron armor? Is it a bug?
  2. Offline


    I had a quick check using my repair code (which successfully repairs other things) with an iron helmet, and not only does it not repair, it set the durability to 0. I think it's pretty unlikely we've both coded the same error, so it's probably a bug with bukkit.
Thread Status:
Not open for further replies.

Share This Page