Class WorldTimesQueries
java.lang.Object
com.djrapitops.plan.storage.database.queries.objects.WorldTimesQueries
Queries for
WorldTimes
objects.-
Method Summary
Modifier and TypeMethodDescriptionfetchGMTimes
(long after, long before, ServerUUID serverUUID) static Query
<WorldTimes> fetchPlayerTotalWorldTimes
(UUID playerUUID) Sum total playtime per world on all servers.static Query
<Map<ServerUUID, WorldTimes>> fetchPlayerWorldTimesOnServers
(UUID playerUUID) Find total world times of the player on servers.static Query
<WorldTimes> fetchServerTotalWorldTimes
(ServerUUID serverUUID) Sum total playtime per world on a server.static QueryStatement
<Set<World>>
-
Method Details
-
fetchServerTotalWorldTimes
Sum total playtime per world on a server.- Parameters:
serverUUID
- Server UUID of the Plan server.- Returns:
- WorldTimes with world name - playtime ms information.
-
fetchPlayerTotalWorldTimes
Sum total playtime per world on all servers.- Parameters:
playerUUID
- UUID of the player.- Returns:
- WorldTimes with world name - playtime ms information.
-
fetchPlayerWorldTimesOnServers
Find total world times of the player on servers.- Parameters:
playerUUID
- UUID of the player.- Returns:
- Map: Server UUID - WorldTimes total for the server
-
fetchGMTimes
-
fetchWorlds
-