How to check condition of an item? [Solved]

Discussion in 'Plugin Development' started by Specops343, Jul 13, 2011.

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

    Specops343

    I'm trying to put a check into Signshops to make sure items are at full condition if they are sold. Any ideas how I might do this?
     
  2. Offline

    krinsdeath

    Code:
    if (item.getDurability() < item.getType().getMaxDurability()) {
      // cancel the item sell?
    }
    
    sup.
     
    cholo71796 likes this.
  3. Offline

    Specops343

    Many thanks, sir.
     
Thread Status:
Not open for further replies.

Share This Page