In case any such seamen or any boy apprenticed on board any ship or vessel shall be harbored, secreted or detained, any magistrate, upon complaint on oath made by the master of such ship, or on his behalf, may inquire into the matter and, if he shall see fit, by warrant under his hand and seal, cause search to be made into any place wherein such seaman or apprentice may be harbored or secreted and cause such seaman or apprentice to be restored to the master of such ship.
S.C. Code § 54-9-20