Former NHL player Matthew Barnaby pleaded guilty to four violations stemming from his drunken-driving arrest and will avoid jail time.

Barnaby, who is from Ottawa and is not a United States citizen, was facing possible deportation. His plea helped him avoid that as well.

Barnaby pleaded guilty Tuesday to driving while intoxicated, refusing a breath test, driving with unsafe tires and failing to notify the Department of Motor Vehicles of his address change.

He was sentenced by the judge to 100 hours of community service and ordered to pay nearly $2,000 in fines.

The Dec. 5 arrest cost Barnaby his job as an NHL analyst for ESPN.

The 38-year-old Barnaby was one of the scrappiest players of his time, racking up more than 2,500 penalty minutes in 834 career games with the Buffalo Sabres, Pittsburgh Penguins, Tampa Bay Lightning, New York Rangers, Colorado Avalanche, Chicago Blackhawks and Dallas Stars.