Lobby & player management. Create & join lobbies instantly.
set_lobby_ready
: Notifies the lobbies system that the server is ready to accept playersset_player_connected
: Notifies the lobbies system of a player connection while confirming the connection’s legitimacyset_player_disconnected
: Notifies the lobbies system of a player disconnectionlobbies.setClosed
endpoint.
find
: Finds an available lobby and grants a player token to connectjoin
: Given a lobby’s id, grants a player token to be used for connectioncreate
script.
list_regions
: Returns listing of all regions available in gamelist
: Returns listing of all the lobbies linked to the lobbies systemlobbies.players.getStatistics
: Returns player count statistics by region and game modemax players - current players
).
prevent_auto_create_lobby
as true
. This will return a MATCHMAKER_NO_AVAILABLE_LOBBIES error when no lobby can accept players.
find_or_create
again, the players will be compacted in fewer, fuller lobbies.
list_regions
to list all enabled regions for your game.
LOBBY_ID
A unique identifier for the lobby. This is a UUID string.LOBBY_VERSION
The version of the lobby, as specified in the lobby configuration.LOBBY_TOKEN
A secure token used for authenticating the lobby with the OpenGB backend.BACKEND_ENDPOINT
The public endpoint URL for the OpenGB backend.