It was Kamehameha's uncle, Kalaniʻōpuʻu, who met and whose men killed Cook. Kalaniʻōpuʻu's death a few years later is what would eventually lead to Kamehameha becoming King. This book predates genAI so it's just good old-fashioned "haoles fuck up extremely famous and fact checkable details," I guess