Interface Server
-
public interface ServerRepresents a "sub-server" behind a proxy platform.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull StringgetName()Get the name of this server.@NotNull Collection<ProxyUser>getPlayers()Get all proxy users currently connected to this server.@NotNull SocketAddressgetSocketAddress()Get the socket address of this server.voidsendData(@NotNull String channel, byte[] data)Send a plugin message to this server.
-
-
-
Method Detail
-
getName
@NotNull @NotNull String getName()
Get the name of this server.- Returns:
- name.
-
getSocketAddress
@NotNull @NotNull SocketAddress getSocketAddress()
Get the socket address of this server.- Returns:
- socket address.
-
getPlayers
@NotNull @NotNull Collection<ProxyUser> getPlayers()
Get all proxy users currently connected to this server.- Returns:
- players connected to this server.
-
sendData
void sendData(@NotNull @NotNull String channel, byte[] data)Send a plugin message to this server.- Parameters:
channel- Plugin message channel.data- Data.
-
-