He is barred from the town centre for 12 months