Fix player health conflicts.

This commit is contained in:
Andreas Troelsen 2013-05-03 22:30:59 +02:00
parent 914c26a02a
commit 5104c975fd

View File

@ -434,7 +434,7 @@ public class ArenaImpl implements Arena
p.setAllowFlight(false);
p.setFlying(false);
//movePlayerToLocation(p, region.getArenaWarp());
setHealth(p, 20);
setHealth(p, p.getMaxHealth());
p.setFoodLevel(20);
assignClassPermissions(p);
arenaPlayerMap.get(p).resetStats();
@ -554,7 +554,7 @@ public class ArenaImpl implements Arena
storePlayerData(p, loc);
removePotionEffects(p);
MAUtils.sitPets(p);
setHealth(p, 20);
setHealth(p, p.getMaxHealth());
p.setFoodLevel(20);
p.setGameMode(GameMode.SURVIVAL);
movePlayerToLobby(p);
@ -640,7 +640,7 @@ public class ArenaImpl implements Arena
return;
}
p.setHealth(20);
setHealth(p, p.getMaxHealth());
Delays.revivePlayer(plugin, this, p);
endArena();
}