JavaScript SDK — Game Data

Game Data — mp.games

getData
await mp.games.getData()

Reads the game-level JSON blob — version policy, name/room rules, client config. Public read with the API token.

updateData (admin)
await mp.games.updateData(gameData)

Writes the game-level blob. Requires apiPrivateToken — admin/server-side only. Per-player data lives on the Players page.