The long-term future of a village cricket club has been secured after a county championship side purchased its ground.