You were making yourself dead, to use a check you need 2 equal signs. If that doesn't work, you could try adding something like if(hp > 0) where clicking potions is being handled.Code:if (c.isDead == true) { c.sendMessage("You cant do that while dieing."); return; }