Interface QueryServerEvent.Full
-
- All Superinterfaces:
Event
,QueryServerEvent
,QueryServerEvent.Basic
- Enclosing interface:
- QueryServerEvent
public static interface QueryServerEvent.Full extends QueryServerEvent.Basic
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.spongepowered.api.event.server.query.QueryServerEvent
QueryServerEvent.Basic, QueryServerEvent.Full
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,String>
customValuesMap()
Gets the map of custom keys and values to respond with.String
gameId()
Gets the GameId to respond with.List<String>
players()
Gets the list of player names to respond with.String
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.String
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 Detail
-
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
void setVersion(String version)
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
void setPlugins(String plugins)
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
Map<String,String> 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
-
-