Add setMaxHealth support

Added requested feature.

Requested in IRC often. If I heard correctly.