mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-11-03 01:10:17 +01:00
Fixed player sorting for /server page
- Now all most recent players should be visible
This commit is contained in:
parent
0605adcbab
commit
97ff014f17
@ -21,6 +21,7 @@ import com.djrapitops.plan.data.container.GeoInfo;
|
||||
import com.djrapitops.plan.data.container.Session;
|
||||
import com.djrapitops.plan.data.store.containers.PlayerContainer;
|
||||
import com.djrapitops.plan.data.store.keys.PlayerKeys;
|
||||
import com.djrapitops.plan.data.store.mutators.SessionsMutator;
|
||||
import com.djrapitops.plan.db.SQLDB;
|
||||
import com.djrapitops.plan.db.access.Query;
|
||||
import com.djrapitops.plan.db.access.queries.objects.BaseUserQueries;
|
||||
@ -75,6 +76,7 @@ public class ServerPlayersTableContainersQuery implements Query<List<PlayerConta
|
||||
return playerSessions;
|
||||
}
|
||||
);
|
||||
container.putCachingSupplier(PlayerKeys.LAST_SEEN, () -> SessionsMutator.forContainer(container).toLastSeen());
|
||||
|
||||
containers.add(container);
|
||||
}
|
||||
|
@ -67,8 +67,6 @@ public class PlayersTableJSONParser {
|
||||
) {
|
||||
// Data
|
||||
this.players = players;
|
||||
this.players.sort(new PlayerContainerLastPlayedComparator());
|
||||
|
||||
this.extensionData = extensionData;
|
||||
|
||||
extensionDescriptives = new ArrayList<>();
|
||||
|
Loading…
Reference in New Issue
Block a user