Interface LastLoginPlayer


  • public interface LastLoginPlayer
    • Method Detail

      • getPlayerUUID

        @NotNull
        @NotNull UUID getPlayerUUID()
        Get the player UUID
        Returns:
        the UUID of the player
      • getName

        @NotNull
        @NotNull String getName()
        Get the name
        Returns:
        the name of the player
      • setName

        void setName​(@NotNull
                     @NotNull String name)
        Set the name
        Parameters:
        name - the name to set
      • getLastLogin

        long getLastLogin()
        Get the last login timestamp
        Returns:
        the last login timestamp, 0 if not exists
      • setLastLogin

        void setLastLogin​(long timestamp)
        Set the last login timestamp
        Parameters:
        timestamp - the timestamp to set
      • getLastLogout

        long getLastLogout()
        Get the last logout timestamp
        Returns:
        the last login timestamp, 0 if not exists
      • setLastLogout

        void setLastLogout​(long timestamp)
        Set the last logout timestamp
        Parameters:
        timestamp - the timestamp to set
      • isOnline

        boolean isOnline()
        Is the player online?
        Returns:
        true if the player is online