Solved Updating inventory after setting durability

Discussion in 'Plugin Development' started by ImTheFool, Jan 15, 2013.

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

    ImTheFool

    I was wondering how to update a Player's inventory after setting durability on one of his items. Is there any way other than using player.updateInventory()? Just a note: player.updateInventory(); works perfectly fine, but is deprecated for I assume some reason.
     
  2. You should have looked at the deprecated comment. This method is a quick fix for your exact problem. And as long as there is no better fix from bukkit you will need to use this method. It will be removed when the fix is out, but I don't think that this will happen in one of the next releases. So the deprecated warning is just a reminder that bukkit will hopefully work on that problem.
     
    ImTheFool likes this.
  3. Offline

    ImTheFool

    Ah. Thank you, sir.
     
Thread Status:
Not open for further replies.

Share This Page