A Barnard Castle man has received a suspended prison sentence over his part in a disturbance in the town in July last year.