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.
      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.
      unique id
    • hasPlayedBefore

      boolean hasPlayedBefore()
      Returns whenever this player has played before.
      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.
      optional of player
    • getLastServer

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