If someone is looking to develop a plugin that does this, the event you're looking for is EntityRegainHealthEvent I tink.