Take a look at the Restore Upon Death plugin, which utilizes hooks such as OnPlayerDeath to get that information.