There's many ways. I'd probably do it as so: PHP: Inventory inv = player.getInventory(); ItemStack[] contents = inv.getContents(); for (ItemStack i : contents) { if (i != null) { return false; }} return true; Just checks if every slot is null (empty), and if it encounters one that isn't empty (meaning the inventory isn't empty), it'll return false. Otherwise if it goes through all the slots and they're all null (empty), it'll return true, meaning yes, the whole inv is empty.