Interface QueryServerEvent.Basic

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.net.InetSocketAddress address()
      Gets the address to respond with.
      java.lang.String gameType()
      Gets the GameType to respond with.
      java.lang.String map()
      Gets the map (world) to respond with.
      int maxPlayerCount()
      Gets the max player count to respond with.
      java.lang.String motd()
      Gets the MOTD to respond with.
      int playerCount()
      Gets the player count to respond with.
      void setAddress​(java.net.InetSocketAddress address)
      Sets the address to respond with.
      void setGameType​(java.lang.String gameType)
      Sets the GameType to respond with.
      void setMap​(java.lang.String map)
      Sets the map (world) to respond with.
      void setMaxPlayerCount​(int maxPlayerCount)
      Sets the max player count to respond with.
      void setMotd​(java.lang.String motd)
      Sets the MOTD to respond with.
      void setPlayerCount​(int playerCount)
      Sets the player count to respond with.
    • Method Detail

      • motd

        java.lang.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​(java.lang.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

        java.lang.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​(java.lang.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

        java.lang.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​(java.lang.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

        java.net.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

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