Class WorldTimesQueries

java.lang.Object
com.djrapitops.plan.storage.database.queries.objects.WorldTimesQueries

public class WorldTimesQueries extends Object
Queries for WorldTimes objects.
  • Method Details

    • fetchServerTotalWorldTimes

      public static Query<WorldTimes> fetchServerTotalWorldTimes(ServerUUID serverUUID)
      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

      public static Query<WorldTimes> fetchPlayerTotalWorldTimes(UUID playerUUID)
      Sum total playtime per world on all servers.
      Parameters:
      playerUUID - UUID of the player.
      Returns:
      WorldTimes with world name - playtime ms information.
    • fetchPlayerWorldTimesOnServers

      public static Query<Map<ServerUUID,WorldTimes>> fetchPlayerWorldTimesOnServers(UUID playerUUID)
      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

      public static Query<GMTimes> fetchGMTimes(long after, long before, ServerUUID serverUUID)
    • fetchWorlds

      public static QueryStatement<Set<World>> fetchWorlds()