Captain Alexander Smollett

He plays an important part in disciplining the main characters on the ship as the story progresses, and helps the protagonists survive against the pirates later on.

[1] However, he quickly reveals that not all is well aboard the ship, and his first conversation with Jim Hawkins, Dr. Livesey, and Squire Trelawney foreshadows the eventual mutiny of many of the Hispaniola's members under the leadership of Long John Silver, a cunning and wealthy one-legged pirate.

(Indeed, Smollett admits[2] that he has goaded Silver on purpose, reasoning that battle is probably inevitable and might as well be fought sooner rather than later, while they are alert and fresh.)

In the end, he and the faithful crew sail back to Bristol laden with treasure, and he retires from seafaring.

[4] Yet, he doesn't fail to reward those who perform well and praises Abraham Gray, a mutineer who defects to their side, for staying at his post dutifully.