Item Durability

Discussion in 'Plugin Development' started by 68x, Aug 30, 2011.

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

    68x

    I trying to give players items on a specific events. The problem is how can I get item's default durability.

    This is how I am adding to the player's inventory.
    Code:
    player.getInventory().addItem(new ItemStack (item.ID, damageValue, item.Duability);
     
  2. Offline

    Baummann

    Code:
    player.getInventory().addItem(new ItemStack(item id, amount));
     
    68x likes this.
  3. Offline

    68x

    Many thanks! I better stick to the JavaDocs ..
     
Thread Status:
Not open for further replies.

Share This Page