mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-09-12 06:48:50 +02:00
Fixes a bug that caused player data to be removed #582
This commit is contained in:
parent
07bea8d800
commit
495eb3f6c0
@ -261,7 +261,7 @@ public abstract class SQLDB extends Database {
|
|||||||
long keepActiveAfter = now - TimeAmount.DAY.ms() * Settings.KEEP_INACTIVE_PLAYERS_DAYS.getNumber();
|
long keepActiveAfter = now - TimeAmount.DAY.ms() * Settings.KEEP_INACTIVE_PLAYERS_DAYS.getNumber();
|
||||||
|
|
||||||
List<UUID> inactivePlayers = sessionsTable.getLastSeenForAllPlayers().entrySet().stream()
|
List<UUID> inactivePlayers = sessionsTable.getLastSeenForAllPlayers().entrySet().stream()
|
||||||
.filter(entry -> entry.getValue() > keepActiveAfter)
|
.filter(entry -> entry.getValue() < keepActiveAfter)
|
||||||
.map(Map.Entry::getKey)
|
.map(Map.Entry::getKey)
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
for (UUID uuid : inactivePlayers) {
|
for (UUID uuid : inactivePlayers) {
|
||||||
|
Loading…
Reference in New Issue
Block a user