Item ID Lookup

Discussion in 'Plugin Development' started by ursa_arcadius, Feb 8, 2011.

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

    ursa_arcadius

    Lets say I have a string that I think is an item name. Is there a way to look up the item ID? Similar to how the /item command works.
     
  2. Offline

    Plague

    Code:
    String s;
    Material m = Material.matchMaterial(s);
    int id = m.getId();
    Everything is here.
     
  3. Offline

    ursa_arcadius

    Awesome, I was looking through there and was sure it existed but couldn't find it.
    Thanks
     
Thread Status:
Not open for further replies.

Share This Page