Oakley was seen on video shoving a guard as a swarm of security surrounded him and ordered him to leave the arena. He had paid for his own ticket but Dolan — with whom he had beefed in the past — wanted him out.

He was facing charges of assault, harassment and trespass.

“Like I said from day one I wasn’t wrong,” Oakley said after taking the deal, which will see his charges dismissed and sealed after six months of good behavior.

He said a trial would benefit nobody and waste taxpayer funds.

“Why keep wasting time?” he said in Manhattan Criminal Court. “Let’s try to keep the streets better for kids instead of going to court.”