Hey there, How would I set an inventory slot as empty? I've tried setting the item to air, the ID to 0, the item to null... Nothing seems to work. I know it will be a really simple solution. >.< For example, if I want to get a value from a config and save it as "i", and then check if i is "0"... Code:JAVA ItemStack i = new ItemStack(0);String getSlot = getConfig().getString("items." + slot); if (getSlot.equals("0")) { //Set i to nothing}
This works perfectly for me: Code: player.getInventory().getItem(int index).setTypeId(0); player.getInventory().getItem(int index).setType(Material.AIR);