public class ServerConnection extends Object implements Server
Modifier and Type | Class and Description |
---|---|
static class |
ServerConnection.KeepAliveData |
Connection.Unsafe
Constructor and Description |
---|
ServerConnection() |
Modifier and Type | Method and Description |
---|---|
void |
disconnect(net.md_5.bungee.api.chat.BaseComponent... reason) |
void |
disconnect(net.md_5.bungee.api.chat.BaseComponent reason) |
void |
disconnect(String reason) |
InetSocketAddress |
getAddress() |
SocketAddress |
getSocketAddress() |
boolean |
isConnected() |
void |
sendData(String channel,
byte[] data) |
Connection.Unsafe |
unsafe() |
public void sendData(String channel, byte[] data)
public void disconnect(String reason)
disconnect
in interface Connection
public void disconnect(net.md_5.bungee.api.chat.BaseComponent... reason)
disconnect
in interface Connection
public void disconnect(net.md_5.bungee.api.chat.BaseComponent reason)
disconnect
in interface Connection
public InetSocketAddress getAddress()
getAddress
in interface Connection
public SocketAddress getSocketAddress()
getSocketAddress
in interface Connection
public boolean isConnected()
isConnected
in interface Connection
public Connection.Unsafe unsafe()
unsafe
in interface Connection
Copyright © 2012–2020 SpigotMC. All rights reserved.