Class GS4QueryEvent.QueryResponse.Builder
java.lang.Object
com.destroystokyo.paper.event.server.GS4QueryEvent.QueryResponse.Builder
- Enclosing class:
GS4QueryEvent.QueryResponse
A builder for
GS4QueryEvent.QueryResponse
objects.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds newGS4QueryEvent.QueryResponse
with supplied data.currentPlayers
(int currentPlayers) gameVersion
(String gameVersion) maxPlayers
(int maxPlayers) players
(Collection<String> players) plugins
(GS4QueryEvent.QueryResponse.PluginInformation... plugins) port
(int port) serverVersion
(String serverVersion)
-
Method Details
-
motd
-
gameVersion
-
map
-
currentPlayers
-
maxPlayers
-
hostname
-
port
-
players
-
players
-
clearPlayers
-
serverVersion
-
plugins
public GS4QueryEvent.QueryResponse.Builder plugins(Collection<GS4QueryEvent.QueryResponse.PluginInformation> plugins) -
plugins
public GS4QueryEvent.QueryResponse.Builder plugins(GS4QueryEvent.QueryResponse.PluginInformation... plugins) -
clearPlugins
-
build
Builds newGS4QueryEvent.QueryResponse
with supplied data.- Returns:
- response
-