Not possible, it would be p.getInventory().setHelmet(new ItemStack(Material.AIR)); however, I already tried that and it didn't work.
I was going to say that you're missing something on your code, but wasnt sure what. Material.AIR works for me atleast.
Nope, Material.AIR will have some sort of issues. null is best for empty slots. PogoStick29 I think we did the same thing; I'm not sure what was wrong with yours (although I only quickly glanced over the source): Code:JAVA public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { if (commandLabel.equalsIgnoreCase("cleareverything")) { if (!(sender instanceof Player)) { sender.sendMessage(ChatColor.RED + "[ClearEverything] Only players can clear everything!"); return true; } else { Player p = (Player)sender; p.getInventory().clear(); p.getInventory().setHelmet(null); p.getInventory().setChestplate(null); p.getInventory().setLeggings(null); p.getInventory().setBoots(null); } } return true; }
We do have the game things. I don't know what I did wrong, but it doesn't matter, as this request has been fulfilled.