Skip to content

Conversation

@BoBkiNN
Copy link

@BoBkiNN BoBkiNN commented Jun 22, 2025

Allows this library to work in non-spigot mapped 1.21.5 servers using paper-nms maven plugin.

Mojang-mapped modules is using ca.bkaw.paper-nms dependency, which must be generated using paper-nms:init task in each of that modules. This tasks downloads paper dev bundle and creates and installs mojang-mapped server artifact.

If server is mojang-mapped and there are no mojang-mapped wrapper for current server version, then spigot-mapped wrapper is used.
Closes #347

@0dinD
Copy link
Collaborator

0dinD commented Jun 22, 2025

I am not sure if I see #347 as a needed feature yet because I think you can still use Mojang mappings in parts of your plugin even if the plugin is marked as spigot-mapped for AnvilGUI compatibility. As stated earlier, I'm not convinced that maintaining both Spigot and Mojang mappings (which adds complexity and things that can break) is worth it for AnvilGUI. Besides, if you are on 1.21.5 and want to use Mojang mappings, I would probably recommend using the recently added MenuType API instead of AnvilGUI.

@BoBkiNN
Copy link
Author

BoBkiNN commented Jun 22, 2025

i dont see much complexity here. I have done absolutely same thing for SignGUI about an year ago, which project structure is inspired by AnvilGUI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mojang-mapped artifact

2 participants