# Uses of Enum
net.md_5.bungee.api.event.ServerConnectEvent.Reason

Packages that use ServerConnectEvent.Reason
Package
Description
net.md_5.bungee.api
net.md_5.bungee.api.connection
net.md_5.bungee.api.event

- ## Uses of ServerConnectEvent.Reason in net.md_5.bungee.api

  Methods in net.md_5.bungee.api that return ServerConnectEvent.Reason
  Modifier and Type
  Method
  Description
  `ServerConnectEvent.Reason`
  ServerConnectRequest.`getReason()`
  Reason for connecting to server.
  Methods in net.md_5.bungee.api with parameters of type ServerConnectEvent.Reason
  Modifier and Type
  Method
  Description
  `ServerConnectRequest.Builder`
  ServerConnectRequest.Builder.`reason(ServerConnectEvent.Reason reason)`
  Reason for connecting to server.

- ## Uses of ServerConnectEvent.Reason in net.md_5.bungee.api.connection

  Methods in net.md_5.bungee.api.connection with parameters of type ServerConnectEvent.Reason
  Modifier and Type
  Method
  Description
  `void`
  ProxiedPlayer.`connect(ServerInfo target, Callback<Boolean> callback, ServerConnectEvent.Reason reason)`
  Connects / transfers this user to the specified connection, gracefully closing the current one.
  `void`
  ProxiedPlayer.`connect(ServerInfo target, ServerConnectEvent.Reason reason)`
  Connects / transfers this user to the specified connection, gracefully closing the current one.

- ## Uses of ServerConnectEvent.Reason in net.md_5.bungee.api.event

  Methods in net.md_5.bungee.api.event that return ServerConnectEvent.Reason
  Modifier and Type
  Method
  Description
  `ServerConnectEvent.Reason`
  ServerConnectEvent.`getReason()`
  Reason for connecting to a new server.
  `static ServerConnectEvent.Reason`
  ServerConnectEvent.Reason.`valueOf(String name)`
  Returns the enum constant of this type with the specified name.
  `static ServerConnectEvent.Reason[]`
  ServerConnectEvent.Reason.`values()`
  Returns an array containing the constants of this enum type, in the order they are declared.
  Constructors in net.md_5.bungee.api.event with parameters of type ServerConnectEvent.Reason
  Modifier
  Constructor
  Description
  ``
  `ServerConnectEvent(ProxiedPlayer player, ServerInfo target, ServerConnectEvent.Reason reason)`
  Deprecated.
  ``
  `ServerConnectEvent(ProxiedPlayer player, ServerInfo target, ServerConnectEvent.Reason reason, ServerConnectRequest request)`