He entered what is known as a Cobbs agreement in which the judge indicates a sentence he is likely to impose — in this case a minimum of 22 years in prison — and if the judge goes above that, then Pressley can withdraw his plea.

The prosecutor’s office said it would seek a longer prison term when Pressley is sentenced Feb. 25.

Police said Pressley and co-defendants Tyler Terrill Ayers, 25, and Terence Montrel Ayers, 22, all of Detroit, were armed with a gun and baton when they entered a home in the 6500 block of Crystal Valley Drive and ordered the people inside to place their hands and their belongings on a table while demanding, “Where is the money?”

One man struck a partygoer with the baton.

The intruders then fled with a cash box as well as wallets, cellphones, keys and two bottles of wine — all of which police say were recovered.

The driver, Jemantae Kayon Perkins, 23, also of Detroit, pleaded no contest to aiding and abetting first-degree home invasion and 13 counts of armed robbery. Terence Ayers and Tyler Ayers pleaded guilty as charged to one count of first-degree home invasion and 13 counts of armed robbery.

Terence Ayers also pleaded guilty to 14 counts of felony firearms while Tyler Ayers Jr. pleaded guilty to felonious assault charges. Their sentencing hearings are tentatively set for Feb. 18.

The case against the fifth co-defendant, Kennie Whitby, was adjourned to Wednesday.