mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-11-23 19:16:41 +01:00
v0.94.4.68 - fixed not giving rewards to spectators when they leave
This commit is contained in:
parent
0182515304
commit
9f77f2f3de
@ -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:
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user