Class GS4QueryEvent.QueryResponse
java.lang.Object
com.destroystokyo.paper.event.server.GS4QueryEvent.QueryResponse
- Enclosing class:
- GS4QueryEvent
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final classA builder forGS4QueryEvent.QueryResponseobjects.static classPlugin information
- 
Method SummaryModifier and TypeMethodDescriptionbuilder()Creates a newGS4QueryEvent.QueryResponse.BuilderinstanceintGet current online player count which will be used to reply to the query.Get game version which will be used to reply to the query.Get server (public facing) hostnamegetMap()Get map name which will be used to reply to the query.intGet max player count which will be used to reply to the query.getMotd()Get motd which will be used to reply to the query.Get collection of players which will be used to reply to the query.Get list of plugins which will be used to reply to the query.intgetPort()Get server (public facing) portGet server software (name and version) which will be used to reply to the query.Creates a newGS4QueryEvent.QueryResponse.Builderinstance from data represented by this response
- 
Method Details- 
getMotdGet motd which will be used to reply to the query. By default it isServer.getMotd().- Returns:
- motd
 
- 
getGameVersionGet game version which will be used to reply to the query. By default supported Minecraft versions range is sent.- Returns:
- game version
 
- 
getMapGet map name which will be used to reply to the query. By defaultworldis sent.- Returns:
- map name
 
- 
getCurrentPlayerspublic int getCurrentPlayers()Get current online player count which will be used to reply to the query.- Returns:
- online player count
 
- 
getMaxPlayerspublic int getMaxPlayers()Get max player count which will be used to reply to the query.- Returns:
- max player count
 
- 
getHostnameGet server (public facing) hostname- Returns:
- server hostname
 
- 
getPortpublic int getPort()Get server (public facing) port- Returns:
- server port
 
- 
getPlayersGet collection of players which will be used to reply to the query.- Returns:
- collection of players
 
- 
getServerVersionGet server software (name and version) which will be used to reply to the query.- Returns:
- server software
 
- 
getPluginsGet list of plugins which will be used to reply to the query.- Returns:
- collection of plugins
 
- 
toBuilderCreates a newGS4QueryEvent.QueryResponse.Builderinstance from data represented by this response- Returns:
- GS4QueryEvent.QueryResponsebuilder
 
- 
builderCreates a newGS4QueryEvent.QueryResponse.Builderinstance- Returns:
- GS4QueryEvent.QueryResponsebuilder
 
 
-