A Lubbock man has pleaded guilty and has been sentenced to 30 years in prison for a June 2018 drive-by shooting.