Three persons, accused of creating a public nuisance under the influence of liquor, were sentenced to community service under the provisions of the Bharatiya Nyay Sanhita (BNS) by a special magistrate here, police said on Saturday.