SPRINGFIELD — A judge sentenced a man involved in a 2013 Springfield shootout to 21 months in jail Monday, suggesting he "get new friends."

Juan Damiron, who was shot in both legs, pleaded guilty to unlawful possession of a firearm and possession of a loaded firearm in Hampden Superior Court. Prosecutors said Damiron, 21, was in his car on Franklin Street when Jose Lopez came out of a nearby apartment building shooting at Christoper Lopez. Damiron, who had the gun in his car, then shot at Jose Lopez.

Lopez, 37, was sentenced last month to 13½ to 15 years in state prison for armed assault with intent to kill for his role in the shootout. Video surveillance showed that children were nearby during the shooting. Lopez claimed that Christopher Lopez came into his apartment, held a gun to his head and stole his jewelry.

Damiron, who has been in custody since the shooting, already has 433 days credit towards his term. His parents and the mother of his child were present in court for his plea.