A town court justice in Erie County who was involved in a drinking-related auto accident in 2014 has resigned under a stipulation with the state Commission on Judicial Conduct, the panel announced Thursday.

Timothy Cooper of Evans Town Court had been a justice since 1986. Under his agreement with the commission, Cooper said he would not seek judicial office in the state again.