public interface PlayerConnection extends RemoteConnection
Modifier and Type | Method and Description |
---|---|
int |
getPing()
Gets the connection ping.
|
Player |
getPlayer()
Gets the associated
Player for this connection. |
void |
sendCustomPayload(Object plugin,
String channel,
byte[] data)
Sends a custom payload to the player connection.
|
void |
sendCustomPayload(Object plugin,
String channel,
ChannelBuf dataStream)
Sends a custom payload over the player connection backed by a
ChannelBuf . |
getAddress, getVirtualHost
Player getPlayer()
Player
for this connection.int getPing()
void sendCustomPayload(Object plugin, String channel, ChannelBuf dataStream)
ChannelBuf
.plugin
- The instance of the pluginchannel
- The channel to send todataStream
- The data