-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Could not pass event InventoryClickEvent #15
Comments
The problem is with your I compiled your plugin and opened the jar file with an unzipper, as you can see, only the abstract class That is because the version wrappers are loaded via Reflection, the However, I don't know if that solution is suitable for you as I saw that your plugin is supposed to function across multiple versions. Because of that, I don't know if there is a solution for you besides getting rid of the |
I now looked into the minimize method a little bit (also because I want to put that in my readme) and found that you can exclude a dependency from being minimized like this: minimize() {
exclude(dependency("de\\.rapha149\\.signgui:signgui:.*")) // Regex
} Using this, all version wrapper classes are compiled into the jar. This also compiles the classes for the versions up to 1.16 which you don't need for your plugin, but it's not that much code and I think that's the best solution for your use case. I also compared the file sizes before and after and the jar file with the whole SignGUI dependency was 0.13MB larger (133721 bytes) which I think is acceptable. |
Thank you ❤️ I managed to get the library working on Paper 1.20.6! Thank you for your commitment and researching Gradle docs to help me exclude the library from |
API version
2.3.5
Server software and version
Paper 1.20.6
Steps to reproduce
Expected behaviour
The SignGUI should open normally, and should be able to capture input.
What is actually happening?
An exception is thrown, that SignGUI does not support 1_20_R4, despite the author claims it does: https://pastes.dev/vKeRJ0nFIz
Code snippets
My full plugin code is available on GitHub, the class where the problem persists is
ParcelSendingGUI
Make sure to use the
finish-sending-gui
branch. https://github.com/EternalCodeTeam/ParcelLockers/tree/finish-sending-logicAny additional comments?
No response
The text was updated successfully, but these errors were encountered: