-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Description
Expected behavior
Dear all,
I have developed the PetDragon plugin(s), which are used by customers on Spigot and Paper alike. These plugins rely extensively on NMS (internal Minecraft code).
I develop my plugin against Mojang's mappings, but then use the SpecialSource Maven plugin to remap my plugins to be Spigot compatible. For years, this also meant they were PaperMC compatible.
However, with version 1.21.11, an updated plugin that correctly finds NMS classes on a SpigotMC server fails to find those classes on a PaperMC server, instead giving NoClassDefFoundErrors.
If I build my plugin jar without the SpecialSource Maven plugin, it finds most classes on Paper except the v1_21_R7/Craft.... classes.
Since I would like to support both Paper and Spigot customers, I sincerely hope PaperMC is planning on making a 1.21.11 version that actually supports Spigot-based NMS plugins, like for all previous versions.
Thank you in advance,
Observed/Actual behavior
With version 1.21.11, an updated plugin that correctly finds NMS classes on a SpigotMC server fails to find those classes on a PaperMC server, instead giving NoClassDefFoundErrors.
If I build my plugin jar without the SpecialSource Maven plugin, it finds most classes on Paper except the v1_21_R7/Craft.... classes.
Steps/models to reproduce
Make a dummy plugin, have it important at least one NMS class, and then remap it using SpecialSource to be Spigot compatible. This plugin will now function on Spigot-1.21.11, and not on PaperMC for 1.21.11.
Plugin and Datapack List
Paper version
This server is running Paper version 1.21.11-51-main@90191f7 (2025-12-21T22:07:10Z) (Implementing API version 1.21.11-R0.1-SNAPSHOT)
Other
No response