public class LoginSession extends Object implements Session
| Constructor and Description |
|---|
LoginSession(BedrockSession session) |
| Modifier and Type | Method and Description |
|---|---|
Optional<String> |
getActiveDirectoryRole() |
String |
getDeviceModel() |
DeviceOS |
getDeviceOS() |
String |
getGameVersion() |
String |
getName() |
Optional<InetSocketAddress> |
getRemoteAddress() |
NukkitServer |
getServer() |
String |
getServerAddress() |
BedrockSession |
getSession() |
UUID |
getUniqueId() |
Optional<String> |
getXuid() |
boolean |
isBanned() |
boolean |
isEducationEdition() |
boolean |
isOnline() |
boolean |
isWhitelisted() |
boolean |
isXboxAuthenticated() |
void |
setBanned(boolean value) |
void |
setWhitelisted(boolean value) |
public LoginSession(BedrockSession session)
public BedrockSession getSession()
@Nonnull public NukkitServer getServer()
@Nonnull public Optional<InetSocketAddress> getRemoteAddress()
getRemoteAddress in interface Sessionpublic boolean isXboxAuthenticated()
isXboxAuthenticated in interface Session@Nonnull public Optional<String> getXuid()
getXuid in interface OfflinePlayerpublic boolean isOnline()
isOnline in interface OfflinePlayer@Nonnull public String getName()
getName in interface OfflinePlayer@Nonnull public UUID getUniqueId()
getUniqueId in interface OfflinePlayer@Nonnull public DeviceOS getDeviceOS()
getDeviceOS in interface Sessionpublic boolean isEducationEdition()
isEducationEdition in interface Session@Nonnull public String getDeviceModel()
getDeviceModel in interface Session@Nonnull public String getGameVersion()
getGameVersion in interface Session@Nonnull public String getServerAddress()
getServerAddress in interface Session@Nonnull public Optional<String> getActiveDirectoryRole()
getActiveDirectoryRole in interface Sessionpublic boolean isBanned()
isBanned in interface OfflinePlayerpublic void setBanned(boolean value)
setBanned in interface OfflinePlayerpublic boolean isWhitelisted()
isWhitelisted in interface OfflinePlayerpublic void setWhitelisted(boolean value)
setWhitelisted in interface OfflinePlayerCopyright © 2017–2019 NukkitX. All rights reserved.