Get if Item can be damaged?

Discussion in 'Plugin Development' started by ksbdude, May 19, 2014.

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

    ksbdude

    For a bit of code I am working on I need to figure out If an Item can have durability like, tools, bows etc can have. I have everything working in my plugin but a method to get if an item is damageable. Thanks in advance.
     
  2. Offline

    NathanWolf

    Try item.getType().getMaxDurability() > 0
     
Thread Status:
Not open for further replies.

Share This Page