Solved Return Material name of item in hand?

Discussion in 'Plugin Development' started by TheDiamond06, Mar 5, 2015.

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

    TheDiamond06

    I am trying to tell the player what item they have in their hand. What I mean by this is I want to return not the name of the item, or itemstack, but the Material. I can only seem to return the ItemStack which gives me ItemStack{x 0 AIR} in chat. I also don't want to return the item name because I already set the name of the item in a different class. Is there anyway I can return the Material of their item in hand. I have tried Material.valueOf(p.getInventory().getItemInHand).
     
  2. Offline

    Skionz

  3. Offline

    Konato_K

  4. Offline

    TheDiamond06

Thread Status:
Not open for further replies.

Share This Page