Interface QueryServerEvent.Full
- All Superinterfaces:
Event
,QueryServerEvent
,QueryServerEvent.Basic
- Enclosing interface:
QueryServerEvent
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.api.event.server.query.QueryServerEvent
QueryServerEvent.Basic, QueryServerEvent.Full
-
Method Summary
Modifier and TypeMethodDescriptionGets the map of custom keys and values to respond with.gameId()
Gets the GameId to respond with.players()
Gets the list of player names to respond with.plugins()
Gets the list of plugins to respond with.void
setPlugins
(String plugins) Sets the list of plugins to respond with.void
setVersion
(String version) Sets the version to respond with.version()
Gets the version to respond with.Methods inherited from interface org.spongepowered.api.event.server.query.QueryServerEvent.Basic
address, gameType, map, maxPlayerCount, motd, playerCount, setAddress, setGameType, setMap, setMaxPlayerCount, setMotd, setPlayerCount
-
Method Details
-
gameId
String gameId()Gets the GameId to respond with.This is currently hardcoded to
MINECRAFT
.- Returns:
- The GameId to respond with.
-
version
String version()Gets the version to respond with.By default, this is the server's Minecraft version (e.g 1.8.1).
- Returns:
- The version to respond with
-
setVersion
Sets the version to respond with.If setting the string causes the message to go over the maximum size, the message will be automatically truncated.
- Parameters:
version
- The version to respond with
-
plugins
String plugins()Gets the list of plugins to respond with.- Returns:
- The list of plugins to respond with
-
setPlugins
Sets the list of plugins to respond with.If setting the string causes the message to go over the maximum size, the message will be automatically truncated.
- Parameters:
plugins
- The list of plugins to respond with
-
customValuesMap
Gets the map of custom keys and values to respond with.If settings any of the keys or values causes the message to go over the maximum size, the message will be automatically truncated.
- Returns:
- The map of custom keys and values to respond with
-
players
Gets the list of player names to respond with.- Returns:
- The list of player names to respond with
-