Interface QueryServerEvent.Basic

All Superinterfaces:
Event, QueryServerEvent
All Known Subinterfaces:
QueryServerEvent.Full
Enclosing interface:
QueryServerEvent

public static interface QueryServerEvent.Basic extends QueryServerEvent
  • 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

      void 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
    • 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

      void 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
    • 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

      void 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
    • 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

      Gets the address to respond with.

      By default, this is the address the server is listening on.

      Returns:
      The address to respond with
    • setAddress

      void setAddress(InetSocketAddress address)
      Sets the address to respond with.
      Parameters:
      address - The address to respond with