How to change item durability?

Discussion in 'Spigot Plugin Development' started by teeter11, Jul 12, 2015.

Thread Status:
Not open for further replies.
  1. What in the spigot API will allow me to change the durability of an item?

    (durability/maxdurability)
     
  2. Creeoer

    Supporter

    setDurability, dem javadocs bro.
     
    • Winner Winner x 1
  3. thanks :)
     
  4. Easier than I thought, too! :)
     
  5. Creeoer

    Supporter

    Lol that isn't it, you have to send that to the bukkit master server for further parsing, then get it back with a runnable that runs exactly 30 seconds after. Once you get the itemstack you have to desereazlie it from the database. Then you'll have your item with it's special durability.
     
    • Funny Funny x 2
Thread Status:
Not open for further replies.