Class PlayerFetchQueries


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Query<java.util.Optional<java.lang.Long>> fetchRegisterDate​(java.util.UUID playerUUID)  
      static Query<java.lang.Boolean> isPlayerRegistered​(java.util.UUID playerUUID)
      Check if the player's BaseUser is registered.
      static Query<java.lang.Boolean> isPlayerRegisteredOnServer​(java.util.UUID playerUUID, ServerUUID serverUUID)
      Check if the player's UserInfo is registered.
      static Query<java.util.Optional<java.lang.String>> playerUserName​(java.util.UUID playerUUID)
      Query Player's name by player's UUID.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • playerUserName

        public static Query<java.util.Optional<java.lang.String>> playerUserName​(java.util.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<java.lang.Boolean> isPlayerRegistered​(java.util.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<java.lang.Boolean> isPlayerRegisteredOnServer​(java.util.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<java.util.Optional<java.lang.Long>> fetchRegisterDate​(java.util.UUID playerUUID)