Class ConnectionInitEvent

  • All Implemented Interfaces:
    Cancellable

    public class ConnectionInitEvent
    extends AsyncEvent<ConnectionInitEvent>
    implements Cancellable
    Represents a brand new connection made to the proxy, allowing for plugins to efficiently close a connection, useful for connection throttlers, etc
    • Method Detail

      • isCancelled

        public boolean isCancelled()
        Description copied from interface: Cancellable
        Get whether or not this event is cancelled.
        Specified by:
        isCancelled in interface Cancellable
        Returns:
        the cancelled state of this event
      • setCancelled

        public void setCancelled​(boolean cancel)
        Description copied from interface: Cancellable
        Sets the cancelled state of this event.
        Specified by:
        setCancelled in interface Cancellable
        Parameters:
        cancel - the state to set
      • getRemoteAddress

        @Deprecated
        public InetSocketAddress getRemoteAddress()
        Deprecated.
        BungeeCord can accept connections via Unix domain sockets
        Returns:
        the INetSocketAddress of the connection being opened
      • getRemoteSocketAddress

        public SocketAddress getRemoteSocketAddress()
        Returns:
        the SocketAddress of the connection being opened