Boxer Floyd Mayweather Jr.'s uncle and trainer pleaded no contest Thursday to two misdemeanor battery charges in a plea deal that avoided a trial and jail time in a Las Vegas domestic battery case.

Roger Mayweather, 49, was sentenced to a year of probation, 24 weeks of domestic violence counseling, 50 hours of community service and a $1,000 fine for the Aug. 2, 2009, incident.

Clark County District Court Judge Valerie Adair accepted Mayweather's pleas as an admission of guilt and warned the retired professional boxer to stay out of trouble for a year or face a year in county jail. A status check was scheduled July 21.

"You know what you have to do?" the judge asked.

"Yes," Mayweather responded.

Trial had been set to begin Monday on felony battery charges alleging Mayweather beat and choked a female boxer he used to train at a Las Vegas apartment that he owned. Mayweather could have faced up to 10 years if convicted of the battery-strangulation and battery causing substantial bodily harm charges.

Roger Mayweather helps train his nephew, who by a quirk of scheduling is due Monday in Las Vegas Justice Court for a preliminary hearing on unrelated coercion, grand larceny and robbery charges. That case stems from a September dispute between Floyd Mayweather Jr., his children and their mother at her home.

Prosecutor Dena Rinetti told Adair on Thursday that the alleged victim agreed to the plea deal in Roger Mayweather's case. She was not in court.

In the hallway, Roger Mayweather declined comment. His lawyer, Jack Buchanan, called the plea deal a fair resolution to the case.

Details of the brawl between the former lightweight, super lightweight and welterweight boxer and a woman he once trained were made public in an evidentiary hearing a year ago.

She testified that Mayweather choked and punched her after he arrived to find her in an apartment he was renting to another man, and that she hit him with a lamp.

Police reported finding Mayweather with his arms around her during the struggle.

Mayweather didn't testify. Buchanan said at the time he would show a jury at trial that the woman started the scuffle, gave conflicting accounts to boxing reporters afterward, and hoped to use the incident to gain a civil financial settlement.