mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-27 19:47:49 +01:00
parent
e64967f3c7
commit
1f4fdd8830
@ -23,6 +23,7 @@ import com.djrapitops.plan.delivery.domain.mutators.TPSMutator;
|
||||
import com.djrapitops.plan.delivery.formatting.Formatter;
|
||||
import com.djrapitops.plan.delivery.formatting.Formatters;
|
||||
import com.djrapitops.plan.delivery.rendering.json.graphs.Graphs;
|
||||
import com.djrapitops.plan.extension.implementation.results.ExtensionTabData;
|
||||
import com.djrapitops.plan.extension.implementation.storage.queries.ExtensionServerPlayerDataTableQuery;
|
||||
import com.djrapitops.plan.gathering.cache.SessionCache;
|
||||
import com.djrapitops.plan.gathering.domain.Ping;
|
||||
@ -101,9 +102,12 @@ public class JSONFactory {
|
||||
|
||||
Database database = dbSystem.getDatabase();
|
||||
|
||||
UUID mainServerUUID = database.query(ServerQueries.fetchProxyServerInformation()).map(Server::getUuid).orElse(serverInfo.getServerUUID());
|
||||
Map<UUID, ExtensionTabData> pluginData = database.query(new ExtensionServerPlayerDataTableQuery(mainServerUUID, xMostRecentPlayers));
|
||||
|
||||
return new PlayersTableJSONCreator(
|
||||
database.query(new NetworkTablePlayersQuery(System.currentTimeMillis(), playtimeThreshold, xMostRecentPlayers)),
|
||||
Collections.emptyMap(),
|
||||
pluginData,
|
||||
openPlayerLinksInNewTab,
|
||||
formatters, locale
|
||||
).toJSONString();
|
||||
|
Loading…
Reference in New Issue
Block a user