private void updateJson() {
        //Worlds
        List<DynmapWorld> dynmapWorlds = new ArrayList<>();
        List<Component> components = new ArrayList<>();

        ArrayList<String> addedComponents = new ArrayList<>();

        config.setConfighash(0);
        String temp = gson.toJson(config);

        for (DynmapServer dynmapServer : net.cubespace.dynmap.multiserver.Main.getDynmapServers()) {
            dynmapWorlds.addAll(dynmapServer.getWorlds());

            for (Component component : dynmapServer.getComponents()) {
                if (component != null) {
                    if (!addedComponents.contains(component.type)) {
                        addedComponents.add(component.type);
                        components.add(component);
                    }
                }
            }
        }

        config.setWorlds(dynmapWorlds);
        config.setComponents(components);
        config.setCoreversion(net.cubespace.dynmap.multiserver.Main.getCoreVersion());
        config.setDynmapversion(net.cubespace.dynmap.multiserver.Main.getDynmapVersion());

        if (!responseStr.equals(temp)) {
            config.setConfighash(0);
            responseStr = gson.toJson(config);
            start = System.currentTimeMillis();
        }
    }