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