An Inman man has been sentenced to 30 years in prison for his role in a fatal robbery last year in Spartanburg County.