public interface PendingConnection extends Connection
Connection.Unsafe
Modifier and Type | Method and Description |
---|---|
ListenerInfo |
getListener()
Get the listener that accepted this connection.
|
String |
getName()
Get the requested username.
|
UUID |
getUniqueId()
Get this connection's UUID, if set.
|
String |
getUUID()
Deprecated.
In favour of
getUniqueId() |
int |
getVersion()
Get the numerical client version of the player attempting to log in.
|
InetSocketAddress |
getVirtualHost()
Get the requested virtual host that the client tried to connect to.
|
boolean |
isLegacy()
Check if the client is using the older unsupported Minecraft protocol
used by Minecraft clients older than 1.7.
|
boolean |
isOnlineMode()
Get this connection's online mode.
|
void |
setOnlineMode(boolean onlineMode)
Set this connection's online mode.
|
void |
setUniqueId(UUID uuid)
Set the connection's uuid
|
disconnect, disconnect, disconnect, getAddress, getSocketAddress, isConnected, unsafe
String getName()
int getVersion()
InetSocketAddress getVirtualHost()
ListenerInfo getListener()
@Deprecated String getUUID()
getUniqueId()
UUID getUniqueId()
void setUniqueId(UUID uuid)
uuid
- connection UUIDboolean isOnlineMode()
setOnlineMode(boolean)
for a description of how this option
works.void setOnlineMode(boolean onlineMode)
onlineMode
- statusboolean isLegacy()
Copyright © 2012–2020 SpigotMC. All rights reserved.