Interface QueryServerEvent.Basic
- All Superinterfaces:
Event
,QueryServerEvent
- All Known Subinterfaces:
QueryServerEvent.Full
- 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 TypeMethodDescriptionaddress()
Gets the address to respond with.gameType()
Gets the GameType to respond with.map()
Gets the map (world) to respond with.int
Gets the max player count to respond with.motd()
Gets the MOTD to respond with.int
Gets the player count to respond with.void
setAddress
(InetSocketAddress address) Sets the address to respond with.void
setGameType
(String gameType) Sets the GameType to respond with.void
Sets the map (world) to respond with.void
setMaxPlayerCount
(int maxPlayerCount) Sets the max player count to respond with.void
Sets the MOTD to respond with.void
setPlayerCount
(int playerCount) Sets the player count to respond with.
-
Method Details
-
motd
String motd()Gets the MOTD to respond with.By default, this is the server's current MOTD
- Returns:
- The MOTD to respond with.
-
setMotd
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
-
gameType
String 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
-
setGameType
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
-
map
String map()Gets the map (world) to respond with.By default, this is the current world on the server.
- Returns:
- The map to respond with
-
setMap
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
-
playerCount
int 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
-
setPlayerCount
void 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
-
maxPlayerCount
int 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
-
setMaxPlayerCount
void 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
-
address
InetSocketAddress address()Gets the address to respond with.By default, this is the address the server is listening on.
- Returns:
- The address to respond with
-
setAddress
Sets the address to respond with.- Parameters:
address
- The address to respond with
-