The town was first mentioned in 1283 , after being given its town charter by Villekinus de Endorpe . The town was first mentioned in 1283 , upon being granted its town charter by Wilhelm von Endorpe .