A judge in Virginia has been sentenced to 30 days in jail for growing more than 40 marijuana plants in his home, according to the Associated Press.

Attorney and substitute judge James H. Allamong Jr. was sentenced on Monday after the felony charges were knocked down to a misdemeanor.

The marijuana plants were discovered by fire fighters last year who had responded to a blaze at a building near Allamong's home. He said the plants were purely for personal use and that he used to drug to treat the pain from injuries he sustained in Vietnam.

"That's the only reason I had the stuff," he told NVDaily.com in 2011. "Obviously, I wish I had an opportunity to go another way, where you can get medicinal marijuana in Virginia, but that's not an option.

"I was wounded in Vietnam from a severe concussion blast and had severe joint and hip problems that just are debilitating."

Allamong was also received a $500 fine, two years of probation and 200 hours of community service.