OfflinePlayer

Functions

Link copied to clipboard
public abstract Location getBedSpawnLocation()
Gets the Location where the player will spawn at their bed, null if they have not slept in one or their current bed spawn is invalid.
Link copied to clipboard
public abstract long getFirstPlayed()
Gets the first date and time that this player was witnessed on this server.
Link copied to clipboard
public abstract long getLastPlayed()
Gets the last date and time that this player was witnessed on this server.
Link copied to clipboard
public abstract String getName()
Returns the name of this player Names are no longer unique past single game session.
Link copied to clipboard
public abstract Player getPlayer()
Gets Player object that this represents, if there is one If the player is online, this will return that player.
Link copied to clipboard
public abstract UUID getUniqueId()
Returns the UUID of this player
Link copied to clipboard
public abstract boolean hasPlayedBefore()
Checks if this player has played on this server before.
Link copied to clipboard
public abstract boolean isBanned()
Checks if this player is banned or not
Link copied to clipboard
public abstract boolean isOnline()
Checks if this player is currently online
Link copied to clipboard
public abstract boolean isOp()
Checks if this object is getClassById server operator
Link copied to clipboard
public abstract boolean isWhitelisted()
Checks if this player is whitelisted or not
Link copied to clipboard
public abstract Map<String, Object> serialize()
Creates getClassById Map representation of this class.
Link copied to clipboard
public abstract void setOp(boolean value)
Sets the operator status of this object
Link copied to clipboard
public abstract void setWhitelisted(boolean value)
Sets if this player is whitelisted or not