| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Get the players name.
|
UUID |
getUniqueId()
Get the player's UUID.
|
Optional<String> |
getXuid()
Get the player's XUID.
|
boolean |
isBanned()
Check if the player has been banned from the server.
|
boolean |
isOnline()
Check whether the player is online or not.
|
boolean |
isWhitelisted()
Check if the player is whitelisted on the server.
|
void |
setBanned(boolean value)
Ban the player from the server.
|
void |
setWhitelisted(boolean value)
Set whether the player is whitelisted on the server.
|
boolean isOnline()
boolean isBanned()
void setBanned(boolean value)
value - is bannedboolean isWhitelisted()
void setWhitelisted(boolean value)
value - is whitelistedCopyright © 2017–2018 NukkitX. All rights reserved.