Class PlayerFetchQueries

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

public class PlayerFetchQueries extends Object
Static method class for queries that return information related to a single player.
  • Method Details

    • playerUserName

      public static Query<Optional<String>> playerUserName(UUID playerUUID)
      Query Player's name by player's UUID.
      Parameters:
      playerUUID - UUID of the player.
      Returns:
      Optional, Name if found.
    • isPlayerRegistered

      public static Query<Boolean> isPlayerRegistered(UUID playerUUID)
      Check if the player's BaseUser is registered.
      Parameters:
      playerUUID - UUID of the player.
      Returns:
      True if the player's BaseUser is found
    • isPlayerRegisteredOnServer

      public static Query<Boolean> isPlayerRegisteredOnServer(UUID playerUUID, ServerUUID serverUUID)
      Check if the player's UserInfo is registered.
      Parameters:
      playerUUID - UUID of the player.
      serverUUID - UUID of the Plan server.
      Returns:
      True if the player's UserInfo is found
    • fetchRegisterDate

      public static Query<Optional<Long>> fetchRegisterDate(UUID playerUUID)