All offenders shall be liable in an action of trespass in the name of the managers or trustees, to pay all damages that have been occasioned by their unlawful acts, which money, when recovered, shall be applied by the managers or trustees to the reparation of the property injured or destroyed.