Levi Viggers the Eighth, descendent of a pirate, must serve a year of after-school detention in the library where he comes across a book that reveals some old family secrets, leading him to team up with his bullying cousin in a search for buried treasure.