Charleston, SC (WLTX) - The admitted white supremacist responsible for the massacre of nine people inside a Charleston church has gotten nine life sentences on state charges that were filed against him.

Dylann Roof, clad in a black and white striped prison jumpsuit and in shackles, appeared in court Monday afternoon, where he entered guilty please to murder and attempted murder charges. In exchange, he received the life sentences, which come without the possibility of parole.

Roof answered a series of questions from the judge, with a series of short one or two word replies, before the judge handed down the sentence.

The action was largely a formality, since Roof had already been sentenced to death at the beginning of the year following his conviction in federal court on murder and other related charges. By taking this option, the state avoids another lengthy trial for a verdict where the outcome was virtually certain, and will begin the process of transferring him to federal custody so he can begin serving time in confinement in a U.S. prison facility.

He'll most likely serve that time in a federal penitentiary in Terre Haute, Indiana.

During last December's trial, prosecutors showed videos and journals that proved that Roof killed his victims because they were black. The recording and writings showed a man with a deep hatred of African-Americans and other minorities, and who spoke of starting a race war.

Roof had planned and prepared for the mass shooting by doing things like buying a gun, having target practice in his backyard, researching and studying racist websites and driving to the church several times in the months leading up to the shooting.

Before being sentenced in federal court, Roof was unrepentant, saying “I felt like I had to do it and I still feel like I had to do it."

He then carried out the attack on June 17, 2015. The victims that night were all at Mother Emanuel AME Church for a Bible study. Roof sat with them for about an hour, then pulled out his gun and started firing. Three people survived the rampage.

Roof is expected to be transferred to a federal prison within the next few weeks.