ME1312 / VanillaCord

VanillaCord – IP Forwarding support for Vanilla Minecraft Servers
Mozilla Public License 2.0
75 stars 11 forks source link

1.21 Error with velocity #25

Open RawrUniversal opened 1 week ago

RawrUniversal commented 1 week ago

What Happened

Here you can write about what happened that shouldn't have. If you have any errors in your console related to what happened, you should also paste those here.

Time: 2024-06-21 14:50:25
Description: Exception in server tick loop

java.lang.IllegalAccessError: class vanillacord.translation.NamespacedKey tried to access private method 'void akr.<init>(java.lang.String, java.lang.String)' (vanillacord.translation.NamespacedKey and akr are in unnamed module of loader java.net.URLClassLoader @4ccabbaa)
    at vanillacord.translation.NamespacedKey.new(Unknown Source)
    at vanillacord.server.VelocityHelper.<clinit>(VelocityHelper.java:29)
    at java.base/java.lang.invoke.DirectMethodHandle.allocateInstance(DirectMethodHandle.java:500)
    at vanillacord.server.VanillaCord.<clinit>(VanillaCord.java:86)
    at apn.e(SourceFile:121)
    at net.minecraft.server.MinecraftServer.y(SourceFile:664)
    at net.minecraft.server.MinecraftServer.a(SourceFile:281)
    at java.base/java.lang.Thread.run(Thread.java:1570)

Additional Information

Here you can provide any extra details you may think useful for solving the problem.

ME1312 commented 1 week ago

Yep, they made the constructor for namespaced keys private. It should be all fixed now.

github-nachtschelm commented 1 week ago

Hi everybody, I just downloaded the latest vanillacord build, had a new mc server patched (1.21) and still run into the problem initially stated. Screenshot 2024-06-24 161444

Do I have to update anything else?

Thanks in advance

ME1312 commented 1 week ago

It would appear that the updated translation isn't being used. Can I have your java --version and VanillaCord server version? Both patcher and server for this commit will identify themselves as VanillaCord 2.0 (24w25a) on startup.

github-nachtschelm commented 1 week ago

Thank you for the swift relpy, @ME1312 .

I'm embarrassed to admit that I'm obviously to dumb to download files. I didn't realise that wget did not overwrite the existing jar but saved it to jar.1. Thus, I patched the mc server using the older VanillaCord.jar. Thanks to your hint regarding the VanillaCord version I found out.

Everything is working fine now.

Thanks again and please forgive me having wasted your time.