mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-11-30 06:33:55 +01:00
Fixed silly logging bug when leaving from the lobby.
This commit is contained in:
parent
61a2e3b319
commit
7ecc2c7a0d
BIN
MobArena.jar
BIN
MobArena.jar
Binary file not shown.
@ -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:
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user