mirror of
https://github.com/taoneill/war.git
synced 2024-11-26 20:26:29 +01:00
Set player max health
This commit is contained in:
parent
53c683abf3
commit
5c992c95ee
@ -447,6 +447,7 @@ public class Warzone {
|
||||
private void handleRespawn(final Team team, final Player player) {
|
||||
// Fill hp
|
||||
player.setRemainingAir(player.getMaximumAir());
|
||||
player.setMaxHealth(20);
|
||||
player.setHealth(player.getMaxHealth());
|
||||
player.setFoodLevel(20);
|
||||
player.setSaturation(team.getTeamConfig().resolveInt(TeamConfig.SATURATION));
|
||||
|
Loading…
Reference in New Issue
Block a user