Package net.md_5.bungee.api
Class ServerConnectRequest
- java.lang.Object
- 
- net.md_5.bungee.api.ServerConnectRequest
 
- 
 public class ServerConnectRequest extends Object A request to connect a server.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classServerConnectRequest.BuilderClass that sets default properties/adds methods to the lombok builder generated class.static classServerConnectRequest.ResultThe result from this callback after request has been executed by proxy.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServerConnectRequest.Builderbuilder()Callback<ServerConnectRequest.Result>getCallback()Callback to execute post request.intgetConnectTimeout()Timeout in milliseconds for request.ServerConnectEvent.ReasongetReason()Reason for connecting to server.@NonNull ServerInfogetTarget()Target server to connect to.booleanisRetry()Should the player be attempted to connect to the next server in their queue if the initial request fails.booleanisSendFeedback()Should feedback from the request be sent to players, allows plugins to silently deal with the outcome on their ownvoidsetConnectTimeout(int connectTimeout)Timeout in milliseconds for request.voidsetRetry(boolean retry)Should the player be attempted to connect to the next server in their queue if the initial request fails.voidsetSendFeedback(boolean sendFeedback)Should feedback from the request be sent to players, allows plugins to silently deal with the outcome on their own
 
- 
- 
- 
Method Detail- 
builderpublic static ServerConnectRequest.Builder builder() 
 - 
getTarget@NonNull public @NonNull ServerInfo getTarget() Target server to connect to.
 - 
getReason@NonNull public ServerConnectEvent.Reason getReason() Reason for connecting to server.
 - 
getCallbackpublic Callback<ServerConnectRequest.Result> getCallback() Callback to execute post request.
 - 
getConnectTimeoutpublic int getConnectTimeout() Timeout in milliseconds for request.
 - 
isRetrypublic boolean isRetry() Should the player be attempted to connect to the next server in their queue if the initial request fails.
 - 
isSendFeedbackpublic boolean isSendFeedback() Should feedback from the request be sent to players, allows plugins to silently deal with the outcome on their own
 - 
setConnectTimeoutpublic void setConnectTimeout(int connectTimeout) Timeout in milliseconds for request.
 - 
setRetrypublic void setRetry(boolean retry) Should the player be attempted to connect to the next server in their queue if the initial request fails.
 - 
setSendFeedbackpublic void setSendFeedback(boolean sendFeedback) Should feedback from the request be sent to players, allows plugins to silently deal with the outcome on their own
 
- 
 
-