Hi, I am new and need your help please. I wanted to read a Material from a String and use it to add the Item/Material to the users Iventory. It seems I am doing something wrong here, but I am not sure what exactly. Code: //mymat causes error on new ItemStack(mymat, myamount); String matval= "Material.DIAMOND"; int myamount = 5; Material mymat = Material.getMaterial(matval); ItemStack mystack = new ItemStack(mymat, myamount); inventory.addItem(mystack); //not taking it from a string works int myamount = 5; ItemStack mystack = new ItemStack(Material.DIAMOND, myamount); inventory.addItem(mystack);