Open source bukkit plugin LifeSupport can be found at http://www.dev.bukkit.org/bukkit-plugins/lso