mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-11-27 13:07:16 +01:00
Fix player health conflicts.
This commit is contained in:
parent
914c26a02a
commit
5104c975fd
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user