public final class GlowOfflinePlayer extends Object implements org.bukkit.OfflinePlayer
Constructor and Description |
---|
GlowOfflinePlayer(GlowServer server,
GlowPlayerProfile profile)
Create a new offline player for the given name.
|
Modifier and Type | Method and Description |
---|---|
static org.bukkit.OfflinePlayer |
deserialize(Map<String,Object> val)
Required method for configuration serialization.
|
boolean |
equals(Object o) |
org.bukkit.Location |
getBedSpawnLocation() |
long |
getFirstPlayed() |
long |
getLastPlayed() |
String |
getName() |
static CompletableFuture<GlowOfflinePlayer> |
getOfflinePlayer(GlowServer server,
UUID uuid)
Returns a Future for a GlowOfflinePlayer by UUID.
|
org.bukkit.entity.Player |
getPlayer() |
GlowPlayerProfile |
getProfile() |
UUID |
getUniqueId() |
int |
hashCode() |
boolean |
hasPlayedBefore() |
boolean |
isBanned() |
boolean |
isOnline() |
boolean |
isOp() |
boolean |
isWhitelisted() |
Map<String,Object> |
serialize() |
void |
setOp(boolean value) |
void |
setWhitelisted(boolean value) |
String |
toString() |
public GlowOfflinePlayer(GlowServer server, GlowPlayerProfile profile)
server
- The server of the offline player. Must not be null.profile
- The profile associated with the player. Must not be null.public static CompletableFuture<GlowOfflinePlayer> getOfflinePlayer(GlowServer server, UUID uuid)
server
- The server of the offline player. Must not be null.uuid
- The UUID of the player. Must not be null.GlowOfflinePlayer
future.public static org.bukkit.OfflinePlayer deserialize(Map<String,Object> val)
val
- map to deserializeConfigurationSerializable
public String getName()
getName
in interface org.bukkit.entity.AnimalTamer
getName
in interface org.bukkit.OfflinePlayer
public UUID getUniqueId()
getUniqueId
in interface org.bukkit.entity.AnimalTamer
getUniqueId
in interface org.bukkit.OfflinePlayer
public boolean isOnline()
isOnline
in interface org.bukkit.OfflinePlayer
public org.bukkit.entity.Player getPlayer()
getPlayer
in interface org.bukkit.OfflinePlayer
public boolean hasPlayedBefore()
hasPlayedBefore
in interface org.bukkit.OfflinePlayer
public boolean isBanned()
isBanned
in interface org.bukkit.OfflinePlayer
public boolean isWhitelisted()
isWhitelisted
in interface org.bukkit.OfflinePlayer
public void setWhitelisted(boolean value)
setWhitelisted
in interface org.bukkit.OfflinePlayer
public boolean isOp()
isOp
in interface org.bukkit.permissions.ServerOperator
public void setOp(boolean value)
setOp
in interface org.bukkit.permissions.ServerOperator
public Map<String,Object> serialize()
serialize
in interface org.bukkit.configuration.serialization.ConfigurationSerializable
public GlowPlayerProfile getProfile()
public long getFirstPlayed()
getFirstPlayed
in interface org.bukkit.OfflinePlayer
public long getLastPlayed()
getLastPlayed
in interface org.bukkit.OfflinePlayer
public org.bukkit.Location getBedSpawnLocation()
getBedSpawnLocation
in interface org.bukkit.OfflinePlayer
Copyright © 2021. All rights reserved.