public DynmapConfigJSONHandler(Main mainConfig) {
        if (gson == null) gson = new Gson();

        if (config == null) {
            config = new DynmapConfig();
            config.setDefaultmap("flat");
            config.setDefaultworld("world");
            config.setConfighash(0);
            config.setTitle(mainConfig.Webserver_Title);

            responseStr = gson.toJson(config);
        }

        if (start == 0) start = System.currentTimeMillis();

        if (dynmapConfigJSONUpdater == null) {
            dynmapConfigJSONUpdater = new DynmapConfigJSONUpdater();
            dynmapConfigJSONUpdater.start();
        }
    }