NoSuchMethodError
The class is there but the method is not: why this is always a version mismatch and how to find what exactly to update.
Updated August 13, 2026
java.lang.NoSuchMethodError: org.bukkit.Server.getOnlinePlayers()Ljava/util/List;
The plugin calls a method that doesn't exist in your version: it appeared later or was removed.
What this means
Almost always a version mismatch:
- the plugin is built for a different Minecraft version;
- the plugin is built for a different version of a dependency (Vault, ProtocolLib, PlaceholderAPI);
- two versions of the same library are sitting in the folder.
How to read it
org.bukkit... — the plugin is built for a different server version. If it's a library package name, that's the one you need to update.
Steps
- Update the plugin to a build for your server version — Compatibility.
- Update the dependency if its package is named.
- Check for duplicate jar files in
plugins(old and new version at the same time) — this is a classic. - If the plugin hasn't been updated in a long time, look for an alternative: a method from the old API won't come back.
After changing the server version
This error is the most common one after updating the Minecraft version. Update plugins together with the server, not afterwards — Updating the server.
Minecraft hostingYour server runs while you are offlineCreate server
