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(java.lang.String reason)
Deprecated.
|
java.net.InetSocketAddress |
getAddress()
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.
|
java.net.InetSocketAddress getAddress()
@Deprecated void disconnect(java.lang.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 © 2015-2018 WaterfallMC. All Rights Reserved.