A black former Eastern Michigan University student who admitted to painting racist graffiti on campus has been ordered to pay more than $2,000 in restitution.

Eddie Curlin, 29, was sentenced on Monday after earlier pleading guilty to malicious destruction of property.

He also pleaded no contest to unrelated counts of identity theft and must serve two-to-five years in prison on those charges.

Day in court: Former Eastern Michigan University student Eddie Curlin, 29, is sentenced on Monday for spray painting racist graffiti on campus

Monetary punishment: Curlin was ordered to pay $2,000 in restitution for the damage after he pleaded guilty to malicious destruction of property

Message of hate: The first incident took place in September 2016 when the letters 'KKK' - seemingly referencing the Ku Klux Klan - and underneath in bold black 'leave n*****s was spray-painted on an exterior wall (pictured)

He was granted credit for 220 days served, reported Mlive.com.

Curlin, who was an EMU student from 2014 to early 2016, was accused of scrawling messages of hate on three separate occasions between the fall of 2016 and the spring of 2017.

Harebrained plan: Officials said Curlin vandalized the buildings then acted as a police informant to have previous charges against him dropped

The first incident took place in September 2016 when the letters 'KKK' - seemingly referencing the Ku Klux Klan - and underneath in bold black 'leave n*****s was spray-painted on an exterior wall, reported the Eastern Echo. The letters 'KKK' were painted in red, white and blue.

An October 2016 incident had the message 'leave n*****s' again scrawled outside of a building, this one right next to the campus's monument to Martin Luther King.

The third incident took place last spring in which a racist message was found in a men's restroom stall in Sherzer Hall, according to EMU.

University officials say Curlin vandalized the buildings then acted as a police informant. Officials say it was a pretense to help solve the case, have previous charges of receiving stolen property against him dropped and return to the school in Ypsilanti.

After he was unmasked as the author of the racist graffiti, Curlin publicly admitted his guilt.

'It was totally self-serving,' he said at a news conference last year. 'It was not driven by politics. It was not driven by race.'