What's wrong with this code? Code: player.getInventory().addItem(new ItemStack(Block.COBBLESTONE, 4, 2)); The player class is correct and everything, it just seems to underline 'addItem' bit :/
That underline is there for a reason, when you point your mouse there Eclipse will tell you more From what I see COBBLESTONE is a Material, not a Block value.
I get the error: The method addItem(ItemStack...) in the type Inventory is not applicable for the arguments (ItemStack)
player.getInventory().addItem(new ItemStack(Material.COBBLESTONE, 4, 2)); try that I'm a noob a bukkit so sorry if it doesn't work
I think you are trying to add net.minecraft.server.ItemStack, instead of org.bukkit.inventory.ItemStack.