Use maxHealth instead of hard-coded value. Fixes BUKKIT-3998

https://bukkit.atlassian.net/browse/BUKKIT-3998