Roastd / Minecraft

warning

A plugin fails while handling an event

Applies to Paper, Vanilla.

What it looks like in your log

Could not pass event PlayerJoinEvent to MyPlugin v1.0.0

What causes it

A plugin threw an exception inside an event handler, so whatever it was meant to do for players silently does not happen.

How to fix it

Update or reconfigure the plugin named in the error.

Why it happens

Plugins register handlers for events: a player joins, a block breaks, a chat message is sent. The server calls each handler in turn. If one throws, the server catches the exception, logs it with the plugin name and the event, and moves on, so the server does not crash. Whatever that handler was meant to do for that event silently did not happen. On a join event that can mean no permissions, no scoreboard, no welcome kit.

The line names the plugin. The stack trace underneath it names the method inside the plugin that failed, and often the cause: a null from a config value that is missing, a call into another plugin that is not installed, or an API that moved in the last game update.

Fix it step by step

  1. 1Read the exception under the lineNullPointerException usually means a missing config value or a dependency the plugin expected. NoSuchMethodError or NoClassDefFoundError means the plugin was built for a different server version.
  2. 2Check the plugin version against the serverOpen its download page and match the build to your Minecraft version. Most event crashes after an update are this.
  3. 3Check its config and dependenciesRegenerate the config if it references features that no longer exist, and confirm every plugin it lists as a dependency is installed and loaded before it.
  4. 4Update or replaceIf a current build still throws, report it with the stack trace. A plugin that throws on every event is doing nothing useful and can come out until it is fixed.

If that didn't work

If several plugins throw on the same event at once, the event itself is the problem: a plugin further up the chain is cancelling or mutating it in a way the others do not expect. Disable plugins one at a time to find it.

Not sure this is your problem? Paste your log and Roastd will tell you which of these it actually matched, and what else it found.

Check your own log

Errors that travel with this one