Interface OfflinePlayer


public interface OfflinePlayer
Represents a player, which is probably offline.
  • Method Details

    • getName

      String getName()
      Returns the name of the player. Can be null in case the proxy couldn't find it.
      Returns:
      name of the offline player or null
    • getUniqueId

      UUID getUniqueId()
      Returns the unique id of the player. That is the uuid that the proxy will use if that offline player hasn't played before, or the uuid the offline player has if played before.
      Returns:
      unique id
    • hasPlayedBefore

      boolean hasPlayedBefore()
      Returns whenever this player has played before.
      Returns:
      true if played, false otherwise
    • getPlayer

      Optional<ProxiedPlayer> getPlayer()
      Gets the specified offline player as a online player. The optional will be empty if the player is not online.
      Returns:
      optional of player
    • getLastServer

      Optional<ServerInfo> getLastServer()
      Returns the last known server where the player was.
      Returns:
      optional of the last known server of the player