The French landed on Ambae, trading with the native people in a peaceful manner, though Bougainville stated that they were later attacked, necessitating him to fire warning shots with his muskets, before his crew left and continued their voyage. In July–September 1774 the islands were explored extensively by British explorer Captain James Cook, who named them the New Hebrides, after the Hebrides off the west coast of Scotland, a name that lasted until independence in 1980.</ref> Cook managed to maintain generally cordial relations with the Ni-Vanuatu by gifting them presents and refraining from violence.