NEW YORK (AP) — Dallas Mavericks point guard Raymond Felton has pleaded guilty in his New York gun case. He took a plea deal that involves admitting a felony but spares him jail.

Felton pleaded guilty Wednesday to attempted criminal possession of a weapon under an agreement prosecutors outlined last month. He was sentenced to 500 hours of community service and a $5,000 fine.

Felton was arrested in February. Authorities said his estranged wife's lawyer brought a loaded semi-automatic handgun to a police precinct and said it was his.

Felton was charged under a state law that bans many large-capacity ammunition magazines. Prosecutors said Felton's could hold about 20 rounds.

Felton was then with the New York Knicks. He was traded to Dallas last month.

The NBA has said it's monitoring the case.

More From 600 ESPN El Paso