Justin Bieber gets two years' probation and anger management

Jul 10, 2014 at 8:57 a.m. ET

Justin Bieber got two years' probation and will have to attend an anger management program after entering a plea deal in his infamous house-egging incident.

The Canadian pop prince pleaded no contest through his attorney to a misdemeanor in the vandalism charge for egging his neighbor's home back in January. While Bieber avoided being charged with a felony, he still had to face some heavy consequences.

Justin Bieber's new DUI defense: A hairline hullabaloo >>

Not only will the Biebs have to complete an anger management course and be placed on probation, he will also have to do five days of community labor. Plus, the "Boyfriend" singer was ordered to pay $80,900 in restitution for damages made to his neighbor's home and will have to stay away from him and his family for two years.

Justin Bieber

Photo credit: ATP/WENN.com

Bieber recently moved away from his Calabasas, California, neighborhood, so keeping 100 yards away from his ex-neighbor won't be much of a problem. As for his anger management classes, he is required to take one per week for 12 weeks.

Justin Bieber racism row: "Hardest thing I've ever dealt with" >>

While Bieber is looking at a hefty punishment for his vandalism actions, he is happy to have settled the matter in court.

"Justin is glad to get this matter resolved and behind him," Bieber's rep told Entertainment Tonight. "He will continue to move forward focusing on his career and his music."

Justin Bieber's guests to pay $3 million if they blab about bash >>

This, of course, wasn't the only run-in with the law Bieber has had this year. The singer has been arrested for assault plus driving under the influence in Miami Beach, Florida. He also was accused of attempted robbery when he had a camera taken away from a photographer.