A burglar has been sentenced to 30 years in prison for the murder of his accomplice who was killed by a cop.