A Kansas City man has been sentenced to 20 years in prison after pleading guilty to second-degree murder in a fatal shooting that happened in 2024.