Item with parametr

Discussion in 'Plugin Development' started by feaq16, Apr 11, 2013.

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

    feaq16

    Hello,
    I create a bukkit plugin, and I have problem with parametr, like Birch Wood, or Potion of Strength
     
  2. Offline

    TGF

    Are you talking about damage byte?
    Like red wool = 35:14 ?^^
     
  3. Offline

    feaq16

    so it is, and how to give this item.
    Code:java
    1.  
    2. p.getInventory().add(new ItemStack(?));
    3.  
     
  4. Offline

    Digi

  5. Offline

    feaq16

    so, How to do it?
     
  6. Offline

    Digi

    feaq16
    Try reading ? :) I've given you a link that lists available arguments, I really don't know what you want...
     
    devilquak likes this.
  7. Offline

    feaq16

    and what I write in place "short damage"?
     
  8. Offline

    Digi

    The data/damage/durability value of the item, a number casted to short (e.g. (short)5 )
    But if you don't need it, don't write it... there are other constructors that don't require it.
     
Thread Status:
Not open for further replies.

Share This Page