public function onEndMapEnd($count, $time, $restarted, Map $map)
    {

        if (!empty($this->changedVotes)) {
            $votes = [];
            foreach ($this->changedVotes as $vote) {
                $votes[] = $vote;
            }

            $this->mxKarma->saveVotes($map, (time() - $this->startTime), $votes);
        }
    }