Startup(boolean guion) {
    	IP ipp = new IP();
    	this.ip = ipp.getIP();
    	enable_gui = guion;
    	gui = new GUI(this,enable_gui);
    	config = new Config("serverConfig", "Server");
    	filef =  new File(config.getProperty("IRCFileFolder"));
    	serverbots.add(new ServerBot(this,"bot"));
    	gui.addLogLine("Initializing DanilaFe's Server");
        if(filef.exists() && filef.isDirectory()){
        	
        } else {
        	filef.mkdir();
        }
        try {
            Runtime.getRuntime().addShutdownHook(new Thread() {
                public void run() {
                    try {
                        acceptthread.stop();
                        if (s != null) {
                            s.close();
                            for (Client c: clients) {
                                c.close();
                            }
                        }
                        gui.close();
                    } catch (IOException e) {
                        e.printStackTrace();
                    }
                }
            });
            s = new ServerSocket(6667);
            gui.addLogLine("Initialized Server Socket");
            acceptthread.start();
            gui.addLogLine("Activated listener. Server is now open to connections.");
            gui.setIcon("greengem.png");
        } catch (IOException e) {
            gui.addLogLine("Problem binding to port. Is another program using it?");
        }
    }