Class GS4QueryEvent.QueryResponse
java.lang.Object
com.destroystokyo.paper.event.server.GS4QueryEvent.QueryResponse
- Enclosing class:
- GS4QueryEvent
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A builder forGS4QueryEvent.QueryResponse
objects.static class
Plugin information -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a newGS4QueryEvent.QueryResponse.Builder
instanceint
Get 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.int
Get 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.int
getPort()
Get server (public facing) portGet server software (name and version) which will be used to reply to the query.Creates a newGS4QueryEvent.QueryResponse.Builder
instance from data represented by this response
-
Method Details
-
getMotd
Get motd which will be used to reply to the query. By default it isServer.getMotd()
.- Returns:
- motd
-
getGameVersion
Get game version which will be used to reply to the query. By default supported Minecraft versions range is sent.- Returns:
- game version
-
getMap
Get map name which will be used to reply to the query. By defaultworld
is sent.- Returns:
- map name
-
getCurrentPlayers
public int getCurrentPlayers()Get current online player count which will be used to reply to the query.- Returns:
- online player count
-
getMaxPlayers
public int getMaxPlayers()Get max player count which will be used to reply to the query.- Returns:
- max player count
-
getHostname
Get server (public facing) hostname- Returns:
- server hostname
-
getPort
public int getPort()Get server (public facing) port- Returns:
- server port
-
getPlayers
Get collection of players which will be used to reply to the query.- Returns:
- collection of players
-
getServerVersion
Get server software (name and version) which will be used to reply to the query.- Returns:
- server software
-
getPlugins
Get list of plugins which will be used to reply to the query.- Returns:
- collection of plugins
-
toBuilder
Creates a newGS4QueryEvent.QueryResponse.Builder
instance from data represented by this response- Returns:
GS4QueryEvent.QueryResponse
builder
-
builder
Creates a newGS4QueryEvent.QueryResponse.Builder
instance- Returns:
GS4QueryEvent.QueryResponse
builder
-