diff --git a/MobArena.jar b/MobArena.jar index 407cbdd..820f44b 100644 Binary files a/MobArena.jar and b/MobArena.jar differ diff --git a/resources/plugin.yml b/resources/plugin.yml index ff147fb..8acd9b8 100644 --- a/resources/plugin.yml +++ b/resources/plugin.yml @@ -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: diff --git a/src/com/garbagemule/MobArena/ArenaImpl.java b/src/com/garbagemule/MobArena/ArenaImpl.java index d745a0b..3e48b6d 100644 --- a/src/com/garbagemule/MobArena/ArenaImpl.java +++ b/src/com/garbagemule/MobArena/ArenaImpl.java @@ -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); diff --git a/src/com/garbagemule/MobArena/log/ArenaLog.java b/src/com/garbagemule/MobArena/log/ArenaLog.java index 71f72cb..71943e7 100644 --- a/src/com/garbagemule/MobArena/log/ArenaLog.java +++ b/src/com/garbagemule/MobArena/log/ArenaLog.java @@ -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);