Longtime criminal sentenced to 30 years in prison