Hello! Is there an event that checks if a lead is disconnected from an entity? I'm trying to have a player instantly die when his lead is disconnected or the entity dies.
Thank you for this, how would I check if the entity is dead? I've tried: if(!entity.isValid()){ and if(entity.isDead()){