When you do event.getPlayer().getInventory().clear() when a player disconnects from the server, when they re-join their inventory is cleared but if they had an item such as a diamond sword in their hand when they reconnect, they will still have the attack damage of that sword but on their fist.