Any person violating section 12:4-21 of this title shall be liable to a penalty of twenty dollars for each offense and also to any damages sustained by the person injured thereby. For every twenty-four hours a vessel shall lie at anchor in said channel, an additional penalty of twenty dollars may be recovered. One-half of the penalty shall go to any person who shall sue for the same and the other half to the county treasury.
N.J.S. § 12:4-22