AP-- Dallas Mavericks point guard Raymond Felton pleaded guilty Wednesday in a New York gun case, taking a plea deal that involved admitting a felony but spares him jail.

Felton pleaded guilty to attempted criminal possession of a weapon and criminal possession of a firearm. He admitted he knowingly had a large-capacity ammunition magazine and a pistol without a license.

"Are those charges true?'' Manhattan state Supreme Court Justice Larry Stephen asked.

"Yes, sir,'' Felton said, later adding in a soft voice, "I apologize.''

He was immediately sentenced to 500 hours of community service and ordered to pay a $5,000 fine. Manhattan Assistant District Attorney Jonathan Rebold said Felton will be allowed to do the service outside New York.

If he complies, the case will be closed without jail time or probation.

Felton has said the Manhattan district attorney's office, which had outlined the agreement in court last month, was fair to him.

The criminal case arose last winter, as Felton grappled with the breakup of his marriage and navigated a struggling season with the New York Knicks. He was traded to Dallas last month, two days after his plea plan was announced.

About a week after Felton's law student wife filed for divorce, her attorney brought a loaded semi-automatic handgun to a police precinct and said it was Felton's, and that she wanted it out of the house, authorities said. Felton's lawyer, Jim Walden, has said Felton never threatened anyone with the gun.

After police contacted Felton, he turned himself in shortly after a Mavericks-Knicks game at Madison Square Garden.

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

The NBA has said it is monitoring the case. The league usually waits until criminal cases against players are resolved before deciding whether to impose any fine or suspension.

Felton, 30, was a star at the University of North Carolina and was the fifth overall pick of the 2005 NBA draft. Besides Dallas and New York, he's played for the Charlotte Bobcats, Denver Nuggets and Portland Trail Blazers.

Last season, Felton missed 17 games while battling injuries and averaged a career-low 9.7 points as the Knicks went 37-45 and missed the playoffs.

Copyright 2014 by The Associated Press

More From KSOO-AM / ESPN Sioux Falls