Attempt to fix auto-start-timer issues.
This commit is contained in:
@@ -637,11 +637,16 @@ public class ArenaImpl implements Arena
|
||||
refund(p);
|
||||
}
|
||||
|
||||
ArenaPlayer ap = arenaPlayerMap.get(p);
|
||||
if (inLobby(p)) {
|
||||
ArenaPlayer ap = arenaPlayerMap.get(p);
|
||||
if (ap.getArenaClass() != null) {
|
||||
limitManager.playerLeftClass(ap.getArenaClass(), ap.getPlayer());
|
||||
}
|
||||
|
||||
// Last lobby player leaving? Stop the timer
|
||||
if (lobbyPlayers.size() == 1) {
|
||||
autoStartTimer.stop();
|
||||
}
|
||||
}
|
||||
|
||||
movePlayerToEntry(p);
|
||||
@@ -1290,6 +1295,11 @@ public class ArenaImpl implements Arena
|
||||
return arenaPlayerMap.values();
|
||||
}
|
||||
|
||||
@Override
|
||||
public AutoStartTimer getAutoStartTimer() {
|
||||
return autoStartTimer;
|
||||
}
|
||||
|
||||
/*@Override
|
||||
public List<ArenaPlayerStatistics> getArenaPlayerStatistics(Comparator<ArenaPlayerStatistics> comparator)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user