Class ServerConnectEvent

  • All Implemented Interfaces:

    public class ServerConnectEvent
    extends Event
    implements Cancellable
    Called when deciding to connect to a server. At the time when this event is called, no connection has actually been made. Cancelling the event will ensure that the connection does not proceed and can be useful to prevent certain players from accessing certain servers.