Town centre trip lands Huddersfield man in court