mirror of
https://github.com/taoneill/war.git
synced 2025-02-08 23:41:48 +01:00
Max health can be changed somehow
Give the player the maximum amount of health on respawn. Closes #766
This commit is contained in:
parent
9bd9f76b9e
commit
aeda124c1c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user