MaterialData? What?

Discussion in 'Plugin Development' started by Jacob Litewski, Feb 6, 2011.

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

    Jacob Litewski

    Ok, I was about to package up my GPS Plugin when I thought "oh, lets make sure this works with the newest bukkit!"

    apparently setDamage() has been removed and now I have a setData() for inventory items.

    How do I set the damage of an Item in a players inventory? does it still work the same way as setDamage()? or do I need to do some more work?
     
  2. Offline

    Derek Peterson

    It's been changed to setDurability(), and it works just like setDamage did.
     
  3. Offline

    Jacob Litewski

    ah awesome! i didnt see that in my Eclipse list, but I'll look again.
     
Thread Status:
Not open for further replies.

Share This Page