Judy Eddy / WENN 1 / 20
Judy Eddy / WENN 1 / 20

TOMS RIVER, N.J. (AP) -- "Jersey Shore" cast member Ronnie Ortiz-Magro has been admitted into a pretrial intervention program that will allow him to avoid a criminal record for an assault that was shown on the first season of the MTV reality series.

RELATED: See what your favorite celebs are up to this week

The 25-year-old New York City resident appeared Monday in New Jersey Superior Court in Toms River.

Judge Stephanie Wauters told Ortiz-Magro that he'd be in the program for 18 months and asked if he'd be willing to do community service during that time.

RELATED: Check out the most awkward celeb PDA

The Asbury Park Press reports that he said he would, though the judge did not specify what or how much.

Ortiz-Magro was charged after a September 2009 fight outside a Seaside Heights nightclub.

He and other cast members recently returned to Seaside Heights to film the show's fifth season.

RELATED: Check out the hottest celeb bods