Skip to content
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

Plugin images throws UnsupportedOperationException on Paper 1.20.6 (v1_20_R5) #118

Closed
nanana90 opened this issue Jan 10, 2025 · 7 comments
Closed

Comments

@nanana90
Copy link

Hello,

I'm encountering an issue with the plugin images (version 2.5.3) on my Paper 1.20.6 server. Despite the Spigot page mentioning compatibility with Minecraft 1.20.6, the plugin fails to load due to an UnsupportedOperationException.

The server log indicates that the PacketListener class does not support the version v1_20_R5. Here's the relevant log excerpt:

[ERROR]: [ModernPluginLoadingStrategy] Could not load plugin 'images-2.5.3.jar' in folder 'plugins/.paper-remapped' org.bukkit.plugin.InvalidPluginException: java.lang.ExceptionInInitializerError ... Caused by: java.lang.UnsupportedOperationException: Class class com.andavin.images.PacketListener is not currently supported for version v1_20_R5 at images-2.5.3.jar/com.andavin.images.Versioned.getInstance(Versioned.java:60) at images-2.5.3.jar/com.andavin.images.Images.<clinit>(Images.java:97)


Steps to Reproduce:

Run a Paper server version 1.20.6.
Place images-2.5.3.jar in the plugins folder.
Start the server.
Observe the error in the console.
Expected Behavior:
The plugin should load successfully and function as described, as the Spigot page states compatibility with 1.20.x versions.


Environment:

Server: Paper 1.20.6 (build 148)
Plugin Version: images-2.5.3
Java Version: Java 17
Possible Cause:
The plugin does not seem to handle the version v1_20_R5 properly in the Versioned.getInstance method. It throws an exception because the version-specific class for PacketListener is not implemented.


Suggested Fix:
Please update the plugin to add support for v1_20_R5. If possible, implement a fallback or more robust handling for future versions to avoid breaking compatibility.


Let me know if you need additional details!
Thank you for your support.

Br

BundleDog

@CloudeLecaw
Copy link
Collaborator

CloudeLecaw commented Jan 10, 2025

can you try out this version?

https://www.file-upload.net/en/download-15438425/images-2.5.3-Fix.jar.html
(this version we use on our paper 1.21.4 server) dont know if it helps for 1.20.6...

and might update Protocollib
https://ci.dmulloy2.net/job/ProtocolLib/739/artifact/build/libs/ProtocolLib.jar

or might not
image

here you see after 1_20_4 it starts with 1_21_1
so might they jumped from 1.20.4 to 1.21 support... and overjumped 1.20.6

@nanana90
Copy link
Author

Hi Cloude,

thanks for your quick response. We have no a new problem with protocollib - can´t join the server now: https://paste.gg/p/anonymous/198aae9b8fef4ce6a58014426be1b46d

is protocollib really important for the images plugin?

@CloudeLecaw
Copy link
Collaborator

CloudeLecaw commented Jan 10, 2025

Hi Cloude,

thanks for your quick response. We have no a new problem with protocollib - can´t join the server now: https://paste.gg/p/anonymous/198aae9b8fef4ce6a58014426be1b46d

is protocollib really important for the images plugin?

i asume no. you could try it without. might be just because all our server using protoollib.

i took a look in the plugin.yml looks like its just a softdependency so optional
image

@nanana90
Copy link
Author

Now it works fine without protocollib - thanks for your help. Have a nice Day :)

@nanana90
Copy link
Author

✌️

@nanana90 nanana90 reopened this Jan 10, 2025
@CloudeLecaw
Copy link
Collaborator

CloudeLecaw commented Jan 10, 2025

Well i forgot (misslooked) that your using 1.20.6 not a 1.21.x version. So if you want to use protocollib one day use this one

https://github.com/dmulloy2/ProtocolLib/releases/tag/5.3.0

The other Link was only for 1.21.x+

@nanana90
Copy link
Author

tryed but there is a server/clientbound.... check my note if you interrested :)

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

No branches or pull requests

2 participants