public interface Connection
Modifier and Type | Interface and Description |
---|---|
static interface |
Connection.Unsafe |
Modifier and Type | Method and Description |
---|---|
void |
disconnect(BaseComponent... reason)
Disconnects this end of the connection for the specified reason.
|
void |
disconnect(BaseComponent reason)
Disconnects this end of the connection for the specified reason.
|
void |
disconnect(String reason)
Deprecated.
|
InetSocketAddress |
getAddress()
Deprecated.
BungeeCord can accept connections via Unix domain sockets
|
SocketAddress |
getSocketAddress()
Gets the remote address of this connection.
|
boolean |
isConnected()
Gets whether this connection is currently open, ie: not disconnected, and
able to send / receive data.
|
Connection.Unsafe |
unsafe()
Get the unsafe methods of this class.
|
@Deprecated InetSocketAddress getAddress()
SocketAddress getSocketAddress()
@Deprecated void disconnect(String reason)
ProxiedPlayer
the respective server connection will be
closed too.reason
- the reason shown to the player / sent to the server on
disconnectvoid disconnect(BaseComponent... reason)
ProxiedPlayer
the respective server connection will be
closed too.reason
- the reason shown to the player / sent to the server on
disconnectvoid disconnect(BaseComponent reason)
ProxiedPlayer
the respective server connection will be
closed too.reason
- the reason shown to the player / sent to the server on
disconnectboolean isConnected()
Connection.Unsafe unsafe()
Copyright © 2012–2020 SpigotMC. All rights reserved.