public static void main(String[] args) {
        log("Enabling LIG server..\n");
        log("Loading main configurations..\n");
        try {
            config = new Config("main");
            port = Integer.parseInt(config.getString("port", "20222"));
            accounts = new Config("accounts");
        }catch(Exception ex) {
            warn("Can't load main configurations!", true);
        }
        log("Loaded port: " + port + "\n");
        try {
            server = new ServerSocket(port);
            log("Connection is established!\n");
        }catch(IOException ex) {
            warn("Can't create server socket!", true);
        }
        log("Loading accounts..\n");
        int count = users.loadContestUsers();
        log(count + " account(s) loaded!\n");
        scan = new Scanner(System.in);
        new Thread(new Server_Loader()).start();
        log("Enter \"start [name]\" to start contest..\n");
        pre();
        while(true) {
            try {
                client = server.accept();
                boolean used = false;
                for(int i = 0; i < threads.length; i++) {
                    if(threads[i] == null) {
                        (threads[i] = new ClientThread(client, i)).start();
                        used = true;
                        break;
                    }
                }
                if(!used) warn("Clients count exceed!", false);
            }catch(IOException ex) {
                warn("Can't create client socket!", false);
            }
        }
    }