WALNUT CREEK — A judge Wednesday ordered Oakland Raiders kicker Sebastian Janikowski to anger management and substance abuse classes over allegations he shoved a woman at a nightclub in 2010.

Janikowski did not appear in Walnut Creek Superior Court, and his attorney would not comment.

Prosecutors agreed to drop one misdemeanor count of false imprisonment to facilitate Janikowski’s referral to a pretrial diversion program. If he follows the program’s rules and avoids further arrest for 12 months, the remaining misdemeanor battery charge will also be dropped.

Janikowski, 33, must perform 30 hours each of anger management and substance abuse classes, as well as 30 hours of community service. He must also stay away from Syrena Nicholson, who authorities say he grabbed and shoved at a September 2010 rap show at a Walnut Creek nightclub.

“He shut the walk-in door and started yelling at me that I had been taking pictures of him at the show,” Nicholson told this newspaper last year. “I had never seen him before in my life. I kind of know who he is now, but I don’t keep track of sports.”

Nicholson, backstage after the performance, tried to leave, but the 6-foot-2, 250-pound Janikowski blocked her path until others broke it up, she claimed.

And in May 2011, the Contra Costa County District Attorney’s Office filed misdemeanor charges of battery and false imprisonment against Janikowski. If convicted of both charges, he could have faced as many as 18 months in jail and a $3,000 fine.

Janikowski was the Raiders’ first-round pick in 2000, only the third kicker ever chosen in the opening round. He tied the NFL record for the longest field goal when he made a 63-yarder against the Denver Broncos in the first game of the 2011 season.

The Pro Bowl kicker’s prior run-ins with the law cover barroom fights while at Florida State and an arrest — and eventual acquittal — after he was suspected of possessing the date-rape drug GHB in 2000, just before his rookie season with the Raiders. Locally, he pleaded no contest to a DUI charge in 2002 near Oakland and avoided prosecution in connection with a 2003 fight outside a Walnut Creek restaurant because of a lack of evidence.

The Oakland Raiders declined to comment Wednesday afternoon.

Staff writer Rick Hurd contributed to this report. Contact Karl Fischer at 510-262-2728.