Fix Unsupported API version
This message usually concerns the plugin API level compared with the server, not Java. Check the descriptor and load log before editing code.

Find out which API the log means
API is a broad term, so read the entire message. A Bukkit or Paper server may reject the api-version in plugin.yml because it is newer than the server understands. The message may instead refer to a Paper API or another library that the plugin depends on. Those cases are not all fixed by changing one number. Keep the server name, version, and full load message, then inspect the descriptor and dependencies.
Minecraft version, server version, and the descriptor's API value are related but not identical. A plugin can declare an older API value on a newer server, while its code may still call modern APIs. The api-version field does not turn newer code into code that works on an older server. Lowering it just to silence a warning can hide a real source requirement.
Check plugin.yml and its location
For a Bukkit plugin, plugin.yml usually lives under src/main/resources so the build copies it to the JAR root. Open the output and confirm it is at the root, not nested under an extra directory such as resources/. Check the spelling of api-version, YAML formatting, and the server version you are testing. YAML indentation matters; malformed structure can make the server read a different value or reject the descriptor.
If the project uses paper-plugin.yml or multiple modules, identify which descriptor is actually included in the final artifact. Editing an old file under a build directory does not necessarily update the source. Clean generated output, rebuild, and inspect the JAR to confirm which file was packaged. The Paper page explains descriptor differences for plugin types.
Match the API dependency to the server
In Maven or Gradle, inspect the paper-api or spigot-api version and identify what the source imports. Do not upgrade to the newest dependency if the target is an older server, and do not downgrade until you confirm the source does not call newer methods. Server plugins commonly declare the API as provided or compileOnly so the server's own API is not bundled in the JAR. Including a copy of the server API can cause a different conflict instead of fixing the version error.
If the message names an external library API, inspect that dependency rather than api-version in plugin.yml. NoSuchMethodError often means code was compiled against a method unavailable at runtime; NoClassDefFoundError means a required class could not be found. Use the NoClassDefFoundError guide if the log names a missing class.
Diagnose by when the error appears
- If it appears during plugin loading, read the line that rejects plugin.yml or a dependency.
- If it appears during compilation, look for imports or methods missing from the chosen API.
- If it happens only on an older server, compare the code's minimum API with that server release.
- If it happens on a non-Paper platform, verify that the plugin targets the platform you are running.
Do not confuse API compatibility with Java compatibility. UnsupportedClassVersionError means the bytecode is newer than the runtime; API rejection concerns platform components. The Java chart helps with the first case, and the major version 65 page covers it in detail.
Confirm the release you intend to support
Choose the oldest server release you want to support and identify the API version compatible with it. If you add a modern feature, you may need to raise the minimum version or provide a fallback. Document supported releases in the plugin README or listing; the metadata value alone is not a compatibility statement. Test on the oldest target and a current target to catch both missing APIs and behavior changes.
In NYXO JAR, a successful build means the source compiled against the project's settings; it does not mean the server accepted the plugin. If loading fails, share the full message, Paper or Spigot release, Minecraft and Java versions, the api-version value, and the API dependency version. Remove private data before sharing files. If the message points elsewhere, start with the general troubleshooting guide.
An API value is not a compatibility guarantee
The api-version field tells the server which plugin API level the project expects, but it does not inspect every bytecode call. A server may accept the metadata and later fail because the code calls a newer method. The reverse is also possible: the declared value is newer than the server supports, so it rejects the plugin before the main class starts. Separate a descriptor rejection from a missing-method error by reading the exception type and the line that caused it.
For a plugin supporting several releases, setting the smallest number is not enough. Review which API methods the source calls, check breaking changes, and add fallback code or tests where needed. Do not publish one build for a broad range unless you tested the oldest release. Use clean server installations for each target, start the plugin, and check both load warnings and runtime behavior.
Mods and proxies use different metadata
If the artifact is not a Bukkit or Paper plugin, do not apply the api-version field from plugin.yml. Fabric and Forge declare loader and game versions in different files, and Velocity has proxy-specific metadata and dependencies. A “version unsupported” message can refer to any of those components. Identify which program is loading the file, then read the matching platform guide instead of adding plugin.yml to a project that does not use Bukkit.
A practical API compatibility check
Suppose an older server rejects a plugin while reading api-version. Do not change the value and publish the file immediately. Inspect the API dependency used to compile it and find out when the methods called by the source were introduced. If those methods exist on the older server, adjusting metadata may be enough. If the code calls newer methods, the correct fix is to raise the minimum supported release or add a compatible code path.
For several server targets, keep a separate test entry for each release and record Paper or Spigot, Java, and plugin versions. Test loading and core behavior. An entry in the plugin list does not prove the plugin is error-free; inspect runtime logs and exercise commands and API-dependent features. This makes a compatibility statement based on actual tests.