PaperShelled icon indicating copy to clipboard operation
PaperShelled copied to clipboard

[Question] Can PaperShelled to be used to modify the code of other Bukkit plugins by Mixin?

Open Polar-Pumpkin opened this issue 1 year ago • 0 comments

I write a PaperShelled plugin to try it out, but I found that adding the @Dependency annotation for the Bukkit plugin I need to modify causes the PaperShelled plugin to fail to load, it shows the message Could not load 'myplugin.jar' without further information, which took me a lot of time to figure out. :(

However, if I don't depend on that Bukkit plugin, the PaperShelled plugin will show a "target class not found" error during loading (when using Mixin injection). It seems that the PaperShelled plugin is loaded much earlier than the Bukkit plugin, causing it to not find the classes from the Bukkit plugin.

This is my first time using Mixin, and I don't have any related knowledge, so I wanted to ask if there is a suitable solution. Thank you.

Polar-Pumpkin avatar Jun 30 '23 16:06 Polar-Pumpkin