Man accused of killing city worker gets 30 years