Bandit begs judge for a drink after he and pals get 32 years

He wanted one last trip to Margaritaville before spending the next three decades in prison.

One of three black men who wore Hollywood-grade masks to make them look white in a 2010 stickup begged a Brooklyn federal court judge for a stiff one before getting sentenced.

“Do I get a last wish?” Akeem Monsalvatge asked Judge Raymond Dearie. “I feel like it’s an execution. Do I get a last meal? Can I get a Patrón margarita?”

But happy hour was over for Monsalvatge, Edward Byam and Derrick Dunkley, each of whom Dearie hit with the mandatory minimum sentence of 32 years.

The judge suggested the terms were harsh but blasted the men for their outrageous robbery of a Queens check-cashing store.

“Each of you showed great potential,” he said. “You had the benefit of youth, which will be squandered behind bars.”

Inspired by the 2010 Ben Affleck flick “The Town,” the men paid nearly $3,000 for three masks and dressed up as cops during the $200,000 heist.

Afterward, the childhood pals set out on a shopping spree from Manhattan to Beverly Hills, buying such luxury items as $1,600 Christian Louboutin shoes and $600 Louis Vuitton belts.

But they made a series of missteps that led to their arrest and a conviction last August.

During the heist, the men flashed an employee a photo of her house to intimidate her. Cops found the picture at the scene and traced it to a nearby Walgreen’s, where surveillance footage showed one of the men buying a printout of the image.

And Byam e-mailed an effusive thank-you to the mask maker.

Prosecutors showed jurors pictures of the men cavorting in high-end clothes in hotels and nightclubs across the country.

One showed Monsalvatge in a T-shirt from “The Town.”

Aping the crooks in the film, the men wore masks and splashed the scene with bleach.

“They used masks and costumes to elude law enforcement, but as they have learned today, their disguises could not shield them from justice,” said Brooklyn US Attorney Loretta Lynch.

The men plan to appeal.