Villagers have protected a much-loved 16th century pub by having it officially listed as a community asset.