This is usually a version mismatch, not a broken plugin file. There are two kinds, and they look similar.
Java version mismatch
A plugin compiled with a newer Java than your server runs on throws an UnsupportedClassVersionError, with a message like "class file version 65.0, this version of the Java Runtime only recognizes up to 61.0". The fix is to update the Java version your server uses, not the plugin.
API version mismatch
Every plugin declares an api-version in its plugin.yml. Paper and Purpur reject a plugin whose api-version is newer than your server build supports, and sometimes one that's too old. The fix is usually to update your server jar to a current build, or to get a version of the plugin made for your Minecraft version.
Rook needs Paper or Purpur 1.21 or newer on Java 21, so if Rook gives you a version error, check your server's Java version first.



