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.QueryResponsewith supplied datacurrentPlayers(int currentPlayers)gameVersion(@NotNull String gameVersion)maxPlayers(int maxPlayers)players(@NotNull Collection<String> players)plugins(@NotNull GS4QueryEvent.QueryResponse.PluginInformation... plugins)port(int port)serverVersion(@NotNull String serverVersion)
-
Method Details
-
motd
-
gameVersion
-
map
-
currentPlayers
-
maxPlayers
-
hostname
-
port
-
players
@NotNull public @NotNull GS4QueryEvent.QueryResponse.Builder players(@NotNull @NotNull Collection<String> players) -
players
-
clearPlayers
-
serverVersion
-
plugins
@NotNull public @NotNull GS4QueryEvent.QueryResponse.Builder plugins(@NotNull @NotNull Collection<GS4QueryEvent.QueryResponse.PluginInformation> plugins) -
plugins
@NotNull public @NotNull GS4QueryEvent.QueryResponse.Builder plugins(@NotNull @NotNull GS4QueryEvent.QueryResponse.PluginInformation... plugins) -
clearPlugins
-
build
Builds newGS4QueryEvent.QueryResponsewith supplied data- Returns:
- response
-