Max health can be changed somehow

Give the player the maximum amount of health on respawn.

Closes #766
This commit is contained in:
cmastudios 2014-04-23 22:08:49 -05:00
parent 9bd9f76b9e
commit aeda124c1c

View File

@ -429,8 +429,8 @@ public class Warzone {
private void handleRespawn(final Team team, final Player player) {
// Fill hp
player.setRemainingAir(300);
player.setHealth(20);
player.setRemainingAir(player.getMaximumAir());
player.setHealth(player.getMaxHealth());
player.setFoodLevel(20);
player.setSaturation(team.getTeamConfig().resolveInt(TeamConfig.SATURATION));
player.setExhaustion(0);