0.7.3
What's Changed
Spigot/Paper: fix ClassNotFoundException: net.minecraft.server.ServerConnection on Mojang-mapped servers
The Spigot plugin failed to enable on Spigot 1.20.5+, certain Paper forks, and any Paper instance running with -Dpaper.disablePluginRemapping=true. The reflection bootstrap in ClassNames only resolved Spigot-mapped NMS class names, which no longer exist after Mojang's mappings became the default.
The plugin now tries the Mojang name first, falls back to the Spigot name, then to the version-prefixed NMS name, for: Connection, ServerConnectionListener, ClientIntentionPacket, ServerboundHelloPacket, ServerLoginPacketListenerImpl, and ServerLoginPacketListenerImpl$LoginHandler. Same pattern for the handshake packet field names (protocolVersion / port / intention).
Verified end-to-end on Paper 1.21.11 with both the auto-remapper enabled and disabled.
If you're on Paper with default settings you likely never saw this — Paper's PluginRemapper was rewriting the FQN string literals at load time. Spigot users and anyone running Mojang-mapped builds were getting bitten.
Diagnosis credit to ChannyAnh in our community Discord.
Full Changelog: 0.7.2...0.7.3