Interface QueryServerEvent.Basic

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

public static interface QueryServerEvent.Basic extends QueryServerEvent
  • Method Details Link icon

    • motd Link icon

      String motd()
      Gets the MOTD to respond with.

      By default, this is the server's current MOTD

      Returns:
      The MOTD to respond with.
    • setMotd Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      Gets the address to respond with.

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

      Returns:
      The address to respond with
    • setAddress Link icon

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