Class PerServerAggregateQueries

java.lang.Object
com.djrapitops.plan.storage.database.queries.PerServerAggregateQueries

public class PerServerAggregateQueries extends Object
Static method class for queries that count together counts for a player on a per server basis.

Example: Fetch how much a player has played on servers

  • Method Details

    • lastSeenOnServers

      public static Query<Map<ServerUUID,​Long>> lastSeenOnServers(UUID playerUUID)
      Find last seen date on servers.
      Parameters:
      playerUUID - UUID of the player.
      Returns:
      Map: Server UUID - Last seen epoch ms.
    • playerKillCountOnServers

      public static Query<Map<ServerUUID,​Integer>> playerKillCountOnServers(UUID playerUUID)
      Find player kill count on servers.
      Parameters:
      playerUUID - UUID of the player.
      Returns:
      Map: Server UUID - Player kill count
    • mobKillCountOnServers

      public static Query<Map<ServerUUID,​Integer>> mobKillCountOnServers(UUID playerUUID)
      Find mob kill count on servers.
      Parameters:
      playerUUID - UUID of the player.
      Returns:
      Map: Server UUID - Mob kill count
    • totalDeathCountOnServers

      public static Query<Map<ServerUUID,​Integer>> totalDeathCountOnServers(UUID playerUUID)