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()
Gets the remote address of this connection.
|
Connection.Unsafe |
unsafe()
Get the unsafe methods of this class.
|
InetSocketAddress getAddress()
@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
disconnectConnection.Unsafe unsafe()
Copyright © 2012–2014 SpigotMC. All rights reserved.