Package net.md_5.bungee.api
Class ServerConnectRequest
java.lang.Object
net.md_5.bungee.api.ServerConnectRequest
A request to connect a server.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Class that sets default properties/adds methods to the lombok builder generated class.static enum
The result from this callback after request has been executed by proxy. -
Method Summary
Modifier and TypeMethodDescriptionstatic ServerConnectRequest.Builder
builder()
Callback to execute post request.int
Timeout in milliseconds for request.Reason for connecting to server.@NonNull ServerInfo
Target server to connect to.boolean
Disabled by default.boolean
isRetry()
Should the player be attempted to connect to the next server in their queue if the initial request fails.boolean
Should feedback from the request be sent to players, allows plugins to silently deal with the outcome on their ownvoid
setConnectTimeout
(int connectTimeout) Timeout in milliseconds for request.void
setRequireAccess
(boolean requireAccess) Disabled by default.void
setRetry
(boolean retry) Should the player be attempted to connect to the next server in their queue if the initial request fails.void
setSendFeedback
(boolean sendFeedback) Should feedback from the request be sent to players, allows plugins to silently deal with the outcome on their own
-
Method Details
-
builder
-
getTarget
Target server to connect to. -
getReason
Reason for connecting to server. -
getCallback
Callback to execute post request. -
getConnectTimeout
public int getConnectTimeout()Timeout in milliseconds for request. -
isRetry
public boolean isRetry()Should the player be attempted to connect to the next server in their queue if the initial request fails. -
isSendFeedback
public boolean isSendFeedback()Should feedback from the request be sent to players, allows plugins to silently deal with the outcome on their own -
isRequireAccess
public boolean isRequireAccess()Disabled by default. Set to true if the permissions defined in the config to restrict servers to certain players should be respected for this request. -
setConnectTimeout
public void setConnectTimeout(int connectTimeout) Timeout in milliseconds for request. -
setRetry
public void setRetry(boolean retry) Should the player be attempted to connect to the next server in their queue if the initial request fails. -
setSendFeedback
public void setSendFeedback(boolean sendFeedback) Should feedback from the request be sent to players, allows plugins to silently deal with the outcome on their own -
setRequireAccess
public void setRequireAccess(boolean requireAccess) Disabled by default. Set to true if the permissions defined in the config to restrict servers to certain players should be respected for this request.
-