JEFFERSONVILLE, Ind. (WDRB) -- A Jeffersonville man originally charged with murder pleads guilty to attempted robbery instead.

21-year-old Nicholas LaCruze accepted a plea deal in Circuit Court in Jeffersonville on Thursday.

Jeffersonville police say LaCruze and Terry Wilson tried to rob the Q-mart on Allison Lane in November 2011.

The store clerk pulled a gun and shot Wilson.

Wilson died a few days later and as a result, LaCruze was charged with murder.

LaCruze could get 30 years in prison on the attempted robbery charge when the judge sentences him in May.

LaCruze signed the plea deal and explained to the judge that he preferred the "30 years instead of 65," referring to the recommended sentence in his agreement against the chance of going to trial and being convicted of murder, which carries a maximum 65-year sentence.

Copyright 2013 WDRB News. All rights reserved.