public RConQueryThread(IServer par1IServer) {
    queryPort = ModuleSnooper.port;
    serverHostname = ModuleSnooper.hostname;
    serverPort = par1IServer.getPort();
    queryHostname = "0.0.0.0";
    server = par1IServer;

    if (0 != serverHostname.length() && !queryHostname.equals(serverHostname)) {
      queryHostname = serverHostname;
    } else {
      serverHostname = "0.0.0.0";

      try {
        InetAddress var2 = InetAddress.getLocalHost();
        queryHostname = var2.getHostAddress();
      } catch (UnknownHostException var3) {
        logWarning(
            "Unable to determine local host IP, please set server-ip/hostname in the snooper config : "
                + var3.getMessage());
      }
    }

    if (0 == queryPort) {
      queryPort = serverPort;
      logInfo("Setting default query port to " + queryPort);
    }

    field_72644_p = new HashMap();

    queryClients = new HashMap();
    time = (new Date()).getTime();
  }
 /** Log severe error message */
 protected void logSevere(String par1Str) {
   server.logSevere(par1Str);
 }
 /** Log information message */
 protected void logInfo(String par1Str) {
   server.logInfo(par1Str);
 }
 /** Log warning message */
 protected void logWarning(String par1Str) {
   server.logWarning(par1Str);
 }
 /** Log debug message */
 protected void logDebug(String par1Str) {
   server.logDebug(par1Str);
 }