Paper
Paper copied to clipboard
Filter plugin.yml's libraries for existing libs
Is your feature request related to a problem?
In plugin.yml you can define libraries to get downloaded and installed into the libraries folder.
I have a plugin that uses this feature to load the adevnture-api which is already included in paper.
Describe the solution you'd like.
It would be nice to have a way to avoid such doubled libraries.
Describe alternatives you've considered.
none
Other
No response
Isn't this related to #7955?
its related but different. #7955 is allowing the dev to have a different entry point with different settings, one of the benefits would be not downloading libs that paper provides. this issue here suggests to do that automatically without the dev needing to do anything
I'm not fond of the notation of having what would potentially be a hardcoded list of libs not to allow loading
Same. It would make sence on one side, but also require more maintenance for devs here.
Functionality-wise, #8108 will cover this by being able to use the plugin loader system which allows you to dynamically add libraries during runtime. This will allow you to do any sort of checks if the library already exists.
Resolved by https://github.com/PaperMC/Paper/pull/8108