This is an archived article and the information in the article may be outdated. Please look at the time stamp on the story to see when it was last updated.

A 57-year-old man has been sentenced to seven years in state prison for attacking a teen who was playing Pokémon Go with a metal pole in Long Beach, officials said.

Jayson Louis Lingen pleaded no contest to one count of assault with a deadly weapon, the Los Angeles County District Attorney’s Office reported Wednesday in a released statement.

Prosecutors said the 17-year-old boy was attacked by Lingen on Aug. 17, 2016 while he was playing the location-based reality game in the 70 block of Aquarium Way.

The boy was roaming the neighborhood when Linden started to yell at him, then hit him in the head with a metal pole, prosecutors said in the statement.

Lingen was also previously convicted of assault with a deadly weapon, the D.A.’s office reported.