v0.94.4.68 - fixed not giving rewards to spectators when they leave

This commit is contained in:
Brian 2012-05-24 00:33:10 -04:00
parent 0182515304
commit 9f77f2f3de
2 changed files with 3 additions and 7 deletions

View File

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

View File

@ -602,13 +602,10 @@ public class ArenaImpl implements Arena
if (ap != null && running)
log.playerDeath(ap);
if (inLobby(p) || inArena(p)) {
restoreInvAndExp(p);
if (inLobby(p) || inArena(p)) {
refund(p);
}
else if (inSpec(p)) {
inventoryManager.restoreInventory(p);
}
movePlayerToEntry(p);
discardPlayer(p);
@ -661,7 +658,6 @@ public class ArenaImpl implements Arena
if (settings.getBoolean("spectate-on-death", true)) {
movePlayerToSpec(p);
//TODO revert if people throw a fit. Should help deter removing valuables from the arena
Messenger.tellPlayer(p, Msg.SPEC_FROM_ARENA);
Messenger.tellPlayer(p, Msg.MISC_MA_LEAVE_REMINDER);
//restoreInvAndExp(p);