You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Paper's plugin classloader soon will use bytecode modification to remap plugins. I think it performs the following two modifications:
Remove craftbukkit version from nms classes.
Remap plugins that use nms to use mojang-mapped classes instead of obfuscated-mapped classes.
ScalaLoader's plugin bytecode transormer should apply the same transformations, it should call ReflectionRemapper and PluginRemapper to apply their transformations. I think this is best done in Platform.java; a PaperPlatform could be implemented which extends from Platform. A new constant for this platform will be added too, and Platform#detect shall be updated.
A note on calling the reflection remapper; it should be called with Paper's ASM dependency, not ScalaLoader's.
Paper's plugin classloader soon will use bytecode modification to remap plugins. I think it performs the following two modifications:
ScalaLoader's plugin bytecode transormer should apply the same transformations, it should call ReflectionRemapper and PluginRemapper to apply their transformations. I think this is best done in Platform.java; a PaperPlatform could be implemented which extends from Platform. A new constant for this platform will be added too, and Platform#detect shall be updated.
A note on calling the reflection remapper; it should be called with Paper's ASM dependency, not ScalaLoader's.
See: https://github.com/PaperMC/testing/releases/tag/no-relocation,
Discord announcement: https://discord.com/channels/289587909051416579/1077385604012179486/1206605416012976178
The text was updated successfully, but these errors were encountered: