# Authoritative Matchmaking

**URL:** <https://forum.heroiclabs.com/t/authoritative-matchmaking/2116>\
**Category:** Runtime Framework\
**Tags:** server-framework\
**Created:** [November 21, 2021, 9:41pm UTC](https://forum.heroiclabs.com/t/authoritative-matchmaking/2116 "2021-11-21T21:41:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![terahardstudios](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/terahardstudios/32/43_2.png) [@terahardstudios](https://forum.heroiclabs.com/u/terahardstudios)\
**Post date:** [November 21, 2021, 9:41pm UTC](https://forum.heroiclabs.com/t/authoritative-matchmaking/2116/1 "2021-11-21T21:41:55Z")

</div>

Hello all,

I recently updated to Nakama 3.9.0 from 3.2.1 and some things stopped working, namely the authoritative matchmaking.

```auto
local function makematch(context, matched_users)
    -- print matched users
    for _, user in ipairs(matched_users) do
        local presence = user.presence
        nk.logger_info(("Matched user '%s' named '%s'"):format(presence.user_id, presence.username))
        for k, v in pairs(user.properties) do
            nk.logger_info(("Matched on '%s' value '%s'"):format(k, v))
        end
    end
    local modulename = "matchmaking"
    local setupstate = { invited = matched_users }
    local matchid = nk.match_create(modulename, setupstate)

    return matchid
end
nk.register_matchmaker_matched(makematch)

```

Basically it never goes in this hook any more.

The full module is pretty much taken from the full example, plus the hook above

> nakama\_1 | {“level”:“info”,“ts”:“2021-11-21T20:31:57.927Z”,“caller”:“server/runtime.go:2271”,“msg”:“Registered Lua runtime Matchmaker Matched function invocation”}

---

<div class="post-metadata">

**Author:** ![terahardstudios](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/terahardstudios/32/43_2.png) [@terahardstudios](https://forum.heroiclabs.com/u/terahardstudios)\
**Post date:** [November 22, 2021, 9:32am UTC](https://forum.heroiclabs.com/t/authoritative-matchmaking/2116/2 "2021-11-22T09:32:52Z")

</div>

FYI I reverted to 3.8.0 and matchmaking is working fine again
