Class ServerConnectEvent

java.lang.Object
net.md_5.bungee.api.plugin.Event
net.md_5.bungee.api.event.ServerConnectEvent
All Implemented Interfaces:
Cancellable

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.