The motor is a Lehner XL2400. Thanks for the advice. Hopefully this won't happen again, so I won't need to try it.
But I want to thank jhautz for fixing my problem. But I also want to let you know that you made me feel like an absolute retard

when you mentioned that the motor has 4 holes in the front. I knew it had 4 holes, but it didn't register right away.