Limit refunds to lobby players.

If the arena has already started, there is no reason why a leaver should have a refund. It's also a douchey move because your buddies in the arena will have a harder time after you leave them for dead.
This commit is contained in:
Andreas Troelsen 2018-05-04 20:58:30 +02:00
parent 5ac83b6898
commit e0b6cc8992

View File

@ -774,7 +774,7 @@ public class ArenaImpl implements Arena
removeClassPermissions(p);
removePotionEffects(p);
boolean refund = inLobby(p) || inArena(p);
boolean refund = inLobby(p);
if (inLobby(p)) {
ArenaPlayer ap = arenaPlayerMap.get(p);