A Brockton man was sentenced to prison after he pleaded guilty to the shooting death of another Brockton man in June 2018.