Former All-Star injured after being hit by pitch in spring training