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 deserializeConfigurationSerializablepublic String getName()
getName in interface org.bukkit.entity.AnimalTamergetName in interface org.bukkit.OfflinePlayerpublic UUID getUniqueId()
getUniqueId in interface org.bukkit.entity.AnimalTamergetUniqueId in interface org.bukkit.OfflinePlayerpublic boolean isOnline()
isOnline in interface org.bukkit.OfflinePlayerpublic org.bukkit.entity.Player getPlayer()
getPlayer in interface org.bukkit.OfflinePlayerpublic boolean hasPlayedBefore()
hasPlayedBefore in interface org.bukkit.OfflinePlayerpublic boolean isBanned()
isBanned in interface org.bukkit.OfflinePlayerpublic boolean isWhitelisted()
isWhitelisted in interface org.bukkit.OfflinePlayerpublic void setWhitelisted(boolean value)
setWhitelisted in interface org.bukkit.OfflinePlayerpublic boolean isOp()
isOp in interface org.bukkit.permissions.ServerOperatorpublic void setOp(boolean value)
setOp in interface org.bukkit.permissions.ServerOperatorpublic Map<String,Object> serialize()
serialize in interface org.bukkit.configuration.serialization.ConfigurationSerializablepublic GlowPlayerProfile getProfile()
public long getFirstPlayed()
getFirstPlayed in interface org.bukkit.OfflinePlayerpublic long getLastPlayed()
getLastPlayed in interface org.bukkit.OfflinePlayerpublic org.bukkit.Location getBedSpawnLocation()
getBedSpawnLocation in interface org.bukkit.OfflinePlayerCopyright © 2021. All rights reserved.