In case any building or structure is erected, constructed, reconstructed, demolished, altered, repaired, moved, converted or maintained, or land is used in violation of this chapter, the offender shall be punished as provided in Section 1-7.