Package net.md_5.bungee.api.event
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classServerConnectEvent.Reason
-
Constructor Summary
Constructors Constructor Description ServerConnectEvent(ProxiedPlayer player, ServerInfo target)Deprecated.ServerConnectEvent(ProxiedPlayer player, ServerInfo target, ServerConnectEvent.Reason reason)Deprecated.ServerConnectEvent(ProxiedPlayer player, ServerInfo target, ServerConnectEvent.Reason reason, ServerConnectRequest request)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.md_5.bungee.api.plugin.Cancellable
isCancelled, setCancelled
-
-
-
-
Constructor Detail
-
ServerConnectEvent
@Deprecated public ServerConnectEvent(ProxiedPlayer player, ServerInfo target)
Deprecated.
-
ServerConnectEvent
@Deprecated public ServerConnectEvent(ProxiedPlayer player, ServerInfo target, ServerConnectEvent.Reason reason)
Deprecated.
-
ServerConnectEvent
public ServerConnectEvent(ProxiedPlayer player, ServerInfo target, ServerConnectEvent.Reason reason, ServerConnectRequest request)
-
-