mirror of
https://github.com/taoneill/war.git
synced 2024-11-23 02:35:24 +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) {
|
private void handleRespawn(final Team team, final Player player) {
|
||||||
// Fill hp
|
// Fill hp
|
||||||
player.setRemainingAir(player.getMaximumAir());
|
player.setRemainingAir(player.getMaximumAir());
|
||||||
|
player.setMaxHealth(20);
|
||||||
player.setHealth(player.getMaxHealth());
|
player.setHealth(player.getMaxHealth());
|
||||||
player.setFoodLevel(20);
|
player.setFoodLevel(20);
|
||||||
player.setSaturation(team.getTeamConfig().resolveInt(TeamConfig.SATURATION));
|
player.setSaturation(team.getTeamConfig().resolveInt(TeamConfig.SATURATION));
|
||||||
|
Loading…
Reference in New Issue
Block a user