@Override
    public void handle(ChannelHandlerContext ctx, FullHttpRequest request) throws Exception {
        //Get the correct DynmapServer
        String world = request.getUri().split("/")[3].split("\\.")[0];
        for (DynmapServer dynmapServer : Main.getDynmapServers()) {
            for (DynmapWorld dynmapWorld : dynmapServer.getWorlds()) {
                if (dynmapWorld.getName().equals(world)) {
                    DynmapWorldConfig dynmapWorldConfig = dynmapServer.getWorldConfig(dynmapWorld.getName());
                    dynmapWorldConfig.setConfighash(0);

                    dynmapWorldConfig.setPlayers(Main.getPlayers());
                    dynmapWorldConfig.setCurrentcount(dynmapWorldConfig.getPlayers().size());

                    String responseStr = gson.toJson(dynmapWorldConfig);

                    FullHttpResponse response = new DefaultFullHttpResponse(HTTP_1_1, OK, Unpooled.wrappedBuffer(responseStr.getBytes()));
                    response.headers().set(CONTENT_TYPE, "application/json; charset=UTF-8");
                    response.headers().set(CONTENT_LENGTH, response.content().readableBytes());
                    response.headers().set(CONNECTION, HttpHeaders.Values.CLOSE);

                    ctx.writeAndFlush(response).addListener(ChannelFutureListener.CLOSE);
                    return;
                }
            }
        }

        HandlerUtil.sendError(ctx, NOT_FOUND);
    }