public config(){
        String settings = fileHandler.readFile("config.jShare");
        ArrayList<String> config = new ArrayList<String>();
        if(!settings.isEmpty()){
            Matcher m = Pattern.compile("\\{([^}]+)\\}").matcher(settings);
            while(m.find()) {
                config.add(m.group(1));
            }
            if(config.get(0).contains("\\|"))
                addresses = config.get(0).split("\\|");
            if(config.get(1).contains("\\|"))
                ports = config.get(1).split("\\|");


            address = (addresses == null ? config.get(0) : addresses[0]);
            port = (ports == null ? config.get(1) : ports[0]);
            if(config.size() > 2)
                userEmail = (config.get(2));

            if(config.size() > 3){
                theme = themeNames.valueOf(config.get(3));
            }
            _Theme = new themes(theme);
        } else {
            address = "jshare.ddns.net";
            port = "25984";
            userEmail = "email@email.com";
            theme = themeNames.DarkTheme;
            _Theme = new themes(theme);
            this.Save();
        }
        try {
            ipAddress = InetAddress.getByName(address).getHostAddress();
        } catch(Exception e){
            System.err.println(e.getMessage());
        }

    }