Interface QueryServerEvent.Basic
- 
- All Superinterfaces:
- Event,- QueryServerEvent
 - All Known Subinterfaces:
- QueryServerEvent.Full
 - Enclosing interface:
- QueryServerEvent
 
 public static interface QueryServerEvent.Basic extends QueryServerEvent 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.spongepowered.api.event.server.query.QueryServerEventQueryServerEvent.Basic, QueryServerEvent.Full
 
- 
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description InetSocketAddressaddress()Gets the address to respond with.StringgameType()Gets the GameType to respond with.Stringmap()Gets the map (world) to respond with.intmaxPlayerCount()Gets the max player count to respond with.Stringmotd()Gets the MOTD to respond with.intplayerCount()Gets the player count to respond with.voidsetAddress(InetSocketAddress address)Sets the address to respond with.voidsetGameType(String gameType)Sets the GameType to respond with.voidsetMap(String map)Sets the map (world) to respond with.voidsetMaxPlayerCount(int maxPlayerCount)Sets the max player count to respond with.voidsetMotd(String motd)Sets the MOTD to respond with.voidsetPlayerCount(int playerCount)Sets the player count to respond with.
 
- 
- 
- 
Method Detail- 
motdString motd() Gets the MOTD to respond with.By default, this is the server's current MOTD - Returns:
- The MOTD to respond with.
 
 - 
setMotdvoid setMotd(String motd) Sets the MOTD to respond with.If setting the string causes the message to go over the maximum size, the message will be automatically truncated. - Parameters:
- motd- The MOTD to respond with
 
 - 
gameTypeString gameType() Gets the GameType to respond with.By default, this is SMP. If setting the string causes the message to go over the maximum size, the message will be automatically truncated.- Returns:
- The GameType to respond with
 
 - 
setGameTypevoid setGameType(String gameType) Sets the GameType to respond with.If setting the string causes the message to go over the maximum size, the message will be automatically truncated. - Parameters:
- gameType- The GameType to respond with
 
 - 
mapString map() Gets the map (world) to respond with.By default, this is the current world on the server. - Returns:
- The map to respond with
 
 - 
setMapvoid setMap(String map) Sets the map (world) to respond with.If setting the string causes the message to go over the maximum size, the message will be automatically truncated. - Parameters:
- map- The map to respond with
 
 - 
playerCountint playerCount() Gets the player count to respond with.By default, this is the number of players present on the server. If setting the string causes the message to go over the maximum size, the message will be automatically truncated. - Returns:
- The player count to respond with
 
 - 
setPlayerCountvoid setPlayerCount(int playerCount) Sets the player count to respond with.If setting the int causes the message to go over the maximum size, the message will be automatically truncated. - Parameters:
- playerCount- The player count to respond with
 
 - 
maxPlayerCountint maxPlayerCount() Gets the max player count to respond with.By default, this is the maximum number of players allowed on the server. - Returns:
- The max player count to respond with
 
 - 
setMaxPlayerCountvoid setMaxPlayerCount(int maxPlayerCount) Sets the max player count to respond with.If setting the int causes the message to go over the maximum size, the message will be automatically truncated. - Parameters:
- maxPlayerCount- The max player count to respond with
 
 - 
addressInetSocketAddress address() Gets the address to respond with.By default, this is the address the server is listening on. - Returns:
- The address to respond with
 
 - 
setAddressvoid setAddress(InetSocketAddress address) Sets the address to respond with.- Parameters:
- address- The address to respond with
 
 
- 
 
-