Package net.md_5.bungee.api
Class ServerConnectRequest.Builder
java.lang.Object
net.md_5.bungee.api.ServerConnectRequest.Builder
- Enclosing class:
- ServerConnectRequest
Class that sets default properties/adds methods to the lombok builder
generated class.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
callback
(Callback<ServerConnectRequest.Result> callback) Callback to execute post request.connectTimeout
(int connectTimeout) Timeout in milliseconds for request.reason
(ServerConnectEvent.Reason reason) Reason for connecting to server.requireAccess
(boolean requireAccess) Disabled by default.retry
(boolean retry) Should the player be attempted to connect to the next server in their queue if the initial request fails.sendFeedback
(boolean sendFeedback) Should feedback from the request be sent to players, allows plugins to silently deal with the outcome on their owntarget
(@NonNull ServerInfo target) Target server to connect to.toString()
-
Method Details
-
target
Target server to connect to.- Returns:
this
.
-
reason
Reason for connecting to server.- Returns:
this
.
-
callback
Callback to execute post request.- Returns:
this
.
-
connectTimeout
Timeout in milliseconds for request.- Returns:
this
.
-
retry
Should the player be attempted to connect to the next server in their queue if the initial request fails.- Returns:
this
.
-
sendFeedback
Should feedback from the request be sent to players, allows plugins to silently deal with the outcome on their own- Returns:
this
.
-
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.- Returns:
this
.
-
build
-
toString
-