package com.techcavern.wavetact;

import com.techcavern.wavetact.console.ConsoleClient;
import com.techcavern.wavetact.eventListeners.MCStatusListener;
import com.techcavern.wavetact.utils.ConfigUtils;
import com.techcavern.wavetact.utils.DatabaseUtils;
import com.techcavern.wavetact.utils.LoadUtils;
import com.techcavern.wavetact.utils.Registry;
import org.slf4j.impl.SimpleLogger;

import java.io.File;
import java.util.concurrent.TimeUnit;

@SuppressWarnings("ConstantConditions")
public class Main {

    public static void main(String[] args) throws Exception {

        System.err.println("\nWelcome to WaveTact!\n");

        System.setProperty(SimpleLogger.SHOW_DATE_TIME_KEY, "true");
        System.setProperty(SimpleLogger.DATE_TIME_FORMAT_KEY, "[yyyy/MM/dd HH:mm:ss]");
        System.setProperty(SimpleLogger.LEVEL_IN_BRACKETS_KEY, "true");
        if ((args.length >= 1) && args[0].equalsIgnoreCase("--client")) {
            ConsoleClient.go();
        } else if (new File("./console.unixsocket").exists()) {
            System.err.println("Instance already started");
            System.exit(0);
        } else {
            LoadUtils.initiateDatabaseConnection();
            LoadUtils.migrate();
            ConfigUtils.registerNetworks();
          LoadUtils.registerConsoleCommands();
            LoadUtils.registerIRCCommands();
            LoadUtils.registerCharReplacements();
            // LoadUtils.checkDuplicateIRCCommands();
            LoadUtils.registerAttacks();
            LoadUtils.registerEightball();
            LoadUtils.initializeAutoFlushWhoisCache();
           Registry.threadPool.execute(new MCStatusListener());
     //   DatabaseUtils.addNetwork("Esper", 6697, "irc.esper.net", "WTTest", "#tctest", null, false, "JZTech101", "nickserv", null, null, null, true);

        Registry.WaveTact.start();
            Registry.threadPool.execute(Registry.consoleServer);
            LoadUtils.initializeMessageQueue();
            LoadUtils.initializeBanQueue();
            Registry.threadPool.awaitTermination(Long.MAX_VALUE, TimeUnit.DAYS);
 //  }
    }
}

@@ -1255,32 +1255,34 @@
 ks();%0A          
+  
 LoadUtils.regist
@@ -1593,32 +1593,33 @@
 e();%0A           
+ 
 Registry.threadP
@@ -1655,16 +1655,23 @@
 ner());%0A
+       
      // 
@@ -1810,24 +1810,28 @@
 ll, true);%0A%0A
+    
         Regi
@@ -2092,18 +2092,39 @@
 DAYS);%0A 
-//
+           //  %7D%0A      
   %7D%0A    

Fix missing bracket