BANGOR – A man who fired as many as 70 shots in Bangor on the Fourth of July, forcing the holiday parade to be rererouted, has pleaded guilty to federal gun charges.

Perrin Oliver pleaded guilty Thursday to being a felon in possession of firearms.

No one was hurt by the gunfire, but the city had to reroute its Fourth of July parade. A parade participant was run over by a 1930 fire truck after its brakes failed on a hill that was not part of the original parade route.

The four-hour standoff ended when a tactical team used tear gas to take Oliver into custody.

Court records indicate he wasn’t supposed to have a gun because of a conviction in 2008 in New York.