Server mod rejections

Hi, I’m trying to make a plugin that catches when a player is not allowed to join my server because they don’t have the correct Pixelmon version. I know that when this happens an error messagge of type “Server mod rejections” is logged in the server console and sent to the player. What I’m trying to do is catch this event and this message and send it to bungeecord. I’ve tried to listen to the Disconnect event and both the Auth and Login events and checked if they were cancelled but with no result.

So the server mod rejection process happens within Forge and not Sponge. I believe this happens after the forge login event (but not sure).

Auth event within sponge (and any Minecraft mod implementation) wont fire if the server is in offline mode (which bungee requires the server to be in) as the server wont authorize the player if the server is in offline mode.

And the login event is too late (i believe).

Take a look at forge events

1 Like

Thank you I’ll check that out