game / pragma.party / PartyService / returnFromMatchV1 /
suspend fun returnFromMatchV1(session: ServiceSession, request: PartyRpc.ReturnFromMatchV1Request): PartyRpc.ReturnFromMatchV1Response
Service endpoint used to return players to their party after they finish a match. Broadcasts new party details to all players upon success.
Each player’s inventory is freshly retrieved and cached prior to invoking the plugin call PartyPlugin.returnFromMatch allowing for updates to the party or players such as resetting selections back to default values or updating player selections to accommodate newly granted or updated inventory items.
GameServerCompatibilityPlugin.calculateGameServerVersion is invoked to determine the overall GameServerVersion for the recreated party. If no GameServerVersion is available from the plugin, will fail with PragmaError.PartyService_GameServerNoLongerCompatible and release all players from the party service. If Party.overrideGameServerVersion is set, the game server calculation will be skipped.