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 java.util.Map<java.lang.String,java.lang.String>
customValuesMap()
Gets the map of custom keys and values to respond with.java.lang.String
gameId()
Gets the GameId to respond with.java.util.List<java.lang.String>
players()
Gets the list of player names to respond with.java.lang.String
plugins()
Gets the list of plugins to respond with.void
setPlugins(java.lang.String plugins)
Sets the list of plugins to respond with.void
setVersion(java.lang.String version)
Sets the version to respond with.java.lang.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
java.lang.String gameId()
Gets the GameId to respond with.This is currently hardcoded to
MINECRAFT
.- Returns:
- The GameId to respond with.
-
version
java.lang.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(java.lang.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
java.lang.String plugins()
Gets the list of plugins to respond with.- Returns:
- The list of plugins to respond with
-
setPlugins
void setPlugins(java.lang.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
java.util.Map<java.lang.String,java.lang.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
-
players
java.util.List<java.lang.String> players()
Gets the list of player names to respond with.- Returns:
- The list of player names to respond with
-
-