Fixed silly logging bug when leaving from the lobby.

This commit is contained in:
garbagemule 2012-03-08 09:05:37 +01:00
parent 61a2e3b319
commit 7ecc2c7a0d
4 changed files with 4 additions and 4 deletions

Binary file not shown.

View File

@ -1,7 +1,7 @@
name: MobArena
author: garbagemule
main: com.garbagemule.MobArena.MobArena
version: 0.94.4.60
version: 0.94.4.61
softdepend: [Spout,MultiVerse,XcraftGate,Towny,Heroes,MagicSpells,Vault]
commands:
ma:

View File

@ -580,7 +580,7 @@ public class ArenaImpl implements Arena
removePotionEffects(p);
ArenaPlayer ap = arenaPlayerMap.get(p);
if (ap != null) log.playerLeave(ap);
if (ap != null && running) log.playerDeath(ap);
if (inLobby(p) || inArena(p)) {
inventoryManager.clearInventory(p);
@ -609,7 +609,7 @@ public class ArenaImpl implements Arena
plugin.getServer().getPluginManager().callEvent(event);
ArenaPlayer ap = arenaPlayerMap.get(p);
if (ap != null) log.playerLeave(ap);
if (ap != null) log.playerDeath(ap);
arenaPlayers.remove(p);

View File

@ -55,7 +55,7 @@ public class ArenaLog
totalsBuilder.finish();
}
public void playerLeave(ArenaPlayer ap) {
public void playerDeath(ArenaPlayer ap) {
ArenaLogPlayerEntry entry = ArenaLogPlayerEntry.create(ap);
sessionBuilder.buildPlayerEntry(entry, arena.getRewardManager().getRewards(ap.getPlayer()));
totalsBuilder.updatePlayerEntry(entry);