increaseHealth

fun increaseHealth(player: Player, amount: Double)

Increases the players' health safely by clamping it within 0 and the maximum health.

Parameters

player

The player to increase the health of.

amount

The amount to increase the health by.