Interface Server


  • public interface Server
    Represents a "sub-server" behind a proxy platform.
    • 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.