Closed BenTheMan69 closed 1 month ago
Have you try 2.3.4-paperfix? works for me 1.21 paper newst build
Gave you try 2.3.4-paperfix? works for me 1.21 paper newst build
do i put the "dirty fix" together with the 2.3.4 file in the plugins folder or just the paperfix by itself? i tried both and didnt work for me
Only this https://github.com/resi23/Images/releases/tag/v2.3.4-PaperFix
This is the complete plugin with the fix for paper.
Nope. unfortinuetly still the same
07.07 12:40:41 [Server] ERROR Error occurred while enabling Images v2.3.4 (Is it up to date?) 07.07 12:40:41 [Server] INFO java.lang.NoClassDefFoundError: com/comphenix/protocol/events/PacketAdapter 07.07 12:40:41 [Server] INFO at java.base/java.lang.ClassLoader.defineClass1(Native Method) ~[?:?] 07.07 12:40:41 [Server] INFO at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1027) ~[?:?] 07.07 12:40:41 [Server] INFO at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150) ~[?:?] 07.07 12:40:41 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:243) ~[paper-api-1.21-R0.1-SNAPSHOT.jar:?] 07.07 12:40:41 [Server] INFO at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:593) ~[?:?] 07.07 12:40:41 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:169) ~[paper-api-1.21-R0.1-SNAPSHOT.jar:?] 07.07 12:40:41 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:164) ~[paper-api-1.21-R0.1-SNAPSHOT.jar:?] 07.07 12:40:41 [Server] INFO at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526) ~[?:?] 07.07 12:40:41 [Server] INFO at images-2.3.4-PaperFix.jar/com.andavin.images.Images.onEnable(Images.java:119) ~[images-2.3.4-PaperFix.jar:?] 07.07 12:40:41 [Server] INFO at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:288) ~[paper-api-1.21-R0.1-SNAPSHOT.jar:?] 07.07 12:40:41 [Server] INFO at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:202) ~[paper-1.21.jar:1.21-46-2fa5e0e] 07.07 12:40:41 [Server] INFO at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:109) ~[paper-1.21.jar:1.21-46-2fa5e0e] 07.07 12:40:41 [Server] INFO at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:520) ~[paper-api-1.21-R0.1-SNAPSHOT.jar:?] 07.07 12:40:41 [Server] INFO at org.bukkit.craftbukkit.CraftServer.enablePlugin(CraftServer.java:629) ~[paper-1.21.jar:1.21-46-2fa5e0e] 07.07 12:40:41 [Server] INFO at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:578) ~[paper-1.21.jar:1.21-46-2fa5e0e] 07.07 12:40:41 [Server] INFO at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:752) ~[paper-1.21.jar:1.21-46-2fa5e0e] 07.07 12:40:41 [Server] INFO at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:514) ~[paper-1.21.jar:1.21-46-2fa5e0e] 07.07 12:40:41 [Server] INFO at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:327) ~[paper-1.21.jar:1.21-46-2fa5e0e] 07.07 12:40:41 [Server] INFO at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1219) ~[paper-1.21.jar:1.21-46-2fa5e0e] 07.07 12:40:41 [Server] INFO at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:329) ~[paper-1.21.jar:1.21-46-2fa5e0e] 07.07 12:40:41 [Server] INFO at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?] 07.07 12:40:41 [Server] INFO Caused by: java.lang.ClassNotFoundException: com.comphenix.protocol.events.PacketAdapter 07.07 12:40:41 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:197) ~[paper-api-1.21-R0.1-SNAPSHOT.jar:?] 07.07 12:40:41 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:164) ~[paper-api-1.21-R0.1-SNAPSHOT.jar:?] 07.07 12:40:41 [Server] INFO at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526) ~[?:?] 07.07 12:40:41 [Server] INFO ... 21 more 07.07 12:40:41 [Server] INFO Disabling Images v2.3.4
hmm i have no problems on paper 1.21 build 46 you have ProtocolLib?
The Last error say he dont find ProtocolLib class
oh wait it says that protocollib failed to load aswell one second let me check that
thats weird. i downloaded the newest version from spigotmc and it still fails to load.
07.07 12:48:57 [Server] INFO Loading server plugin ProtocolLib v5.2.0-SNAPSHOT-679
07.07 12:48:57 [Server] WARN Version (MC: 1.21.0) has not yet been tested! Proceed with caution.
07.07 12:48:58 [Server] ERROR Assuming package version: v1_21_R1
07.07 12:48:58 [Server] ERROR INTERNAL ERROR: Cannot load ProtocolLib.
07.07 12:48:58 [Server] INFO If this problem hasn't already been reported, please open a ticket
07.07 12:48:58 [Server] INFO at https://github.com/dmulloy2/ProtocolLib/issues with the following data:
07.07 12:48:58 [Server] INFO Stack Trace:
07.07 12:48:58 [Server] INFO java.lang.IllegalArgumentException: Unable to find a field that matches {modifiers=[required: 10000, banned: 1000], type={ type input instanceof interface java.util.Map }}
07.07 12:48:58 [Server] INFO at ProtocolLib.jar//com.comphenix.protocol.reflect.FuzzyReflection.getField(FuzzyReflection.java:352)
07.07 12:48:58 [Server] INFO at ProtocolLib.jar//com.comphenix.protocol.injector.packet.PacketRegistry.createNewRegister(PacketRegistry.java:183)
07.07 12:48:58 [Server] INFO at ProtocolLib.jar//com.comphenix.protocol.injector.packet.PacketRegistry.initialize(PacketRegistry.java:334)
07.07 12:48:58 [Server] INFO at ProtocolLib.jar//com.comphenix.protocol.injector.packet.PacketRegistry.getClientPacketTypes(PacketRegistry.java:369)
07.07 12:48:58 [Server] INFO at ProtocolLib.jar//com.comphenix.protocol.injector.PacketFilterManager.
^^
Plugin protocolLib = Bukkit.getPluginManager().getPlugin("ProtocolLib");
if (protocolLib != null) { // ProtocolLib is present so use it for higher stability
this.protocolLib = true;
Logger.info("ProtocolLib detected. Enabling generic packet handling...");
ProtocolLibListener.register(this, LISTENER_TASKS, BRIDGE);
}
Yes, it checks whether the protocol exists but not whether it is enabled. I think that is where the error comes from. You have it on there but it is not enabled and therefore the class cannot find it
use https://ci.dmulloy2.net/job/ProtocolLib/723/ latest dev build
On Spigot is the 5.2.0 this is not 1.21 you need 5.3.0
hey thanks that worked wondefully! i didnt see that small comment on the PlaceholderLib page that said to download the latest dev build for 1.21. thanks for your help!
Perfect :)
the 1.21 fix that got mentioned in #86 doesnt work as intended. i own a Paper/Spigot 1.21 Server and the plugin fails to load. Heres what it says in the console:
07.07 12:32:16 [Server] ERROR Could not load plugin 'images-2.3.4.jar' in folder 'plugins/.paper-remapped' 07.07 12:32:16 [Server] INFO org.bukkit.plugin.InvalidPluginException: java.lang.ExceptionInInitializerError 07.07 12:32:16 [Server] INFO at io.papermc.paper.plugin.provider.type.spigot.SpigotPluginProvider.createInstance(SpigotPluginProvider.java:129) ~[paper-1.21.jar:1.21-46-2fa5e0e] 07.07 12:32:16 [Server] INFO at io.papermc.paper.plugin.provider.type.spigot.SpigotPluginProvider.createInstance(SpigotPluginProvider.java:35) ~[paper-1.21.jar:1.21-46-2fa5e0e] 07.07 12:32:16 [Server] INFO at io.papermc.paper.plugin.entrypoint.strategy.modern.ModernPluginLoadingStrategy.loadProviders(ModernPluginLoadingStrategy.java:116) ~[paper-1.21.jar:1.21-46-2fa5e0e] 07.07 12:32:16 [Server] INFO at io.papermc.paper.plugin.storage.SimpleProviderStorage.enter(SimpleProviderStorage.java:38) ~[paper-1.21.jar:1.21-46-2fa5e0e] 07.07 12:32:16 [Server] INFO at io.papermc.paper.plugin.entrypoint.LaunchEntryPointHandler.enter(LaunchEntryPointHandler.java:40) ~[paper-1.21.jar:1.21-46-2fa5e0e] 07.07 12:32:16 [Server] INFO at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:535) ~[paper-1.21.jar:1.21-46-2fa5e0e] 07.07 12:32:16 [Server] INFO at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:290) ~[paper-1.21.jar:1.21-46-2fa5e0e] 07.07 12:32:16 [Server] INFO at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1219) ~[paper-1.21.jar:1.21-46-2fa5e0e] 07.07 12:32:16 [Server] INFO at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:329) ~[paper-1.21.jar:1.21-46-2fa5e0e] 07.07 12:32:16 [Server] INFO at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?] 07.07 12:32:16 [Server] INFO Caused by: java.lang.ExceptionInInitializerError 07.07 12:32:16 [Server] INFO at images-2.3.4.jar/com.andavin.images.Versioned.(Versioned.java:42) ~[images-2.3.4.jar:?]
07.07 12:32:16 [Server] INFO at images-2.3.4.jar/com.andavin.images.Images.(Images.java:97) ~[images-2.3.4.jar:?]
07.07 12:32:16 [Server] INFO at java.base/java.lang.Class.forName0(Native Method) ~[?:?]
07.07 12:32:16 [Server] INFO at java.base/java.lang.Class.forName(Class.java:534) ~[?:?]
07.07 12:32:16 [Server] INFO at java.base/java.lang.Class.forName(Class.java:513) ~[?:?]
07.07 12:32:16 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.(PluginClassLoader.java:78) ~[paper-api-1.21-R0.1-SNAPSHOT.jar:?]
07.07 12:32:16 [Server] INFO at io.papermc.paper.plugin.provider.type.spigot.SpigotPluginProvider.createInstance(SpigotPluginProvider.java:125) ~[paper-1.21.jar:1.21-46-2fa5e0e]
07.07 12:32:16 [Server] INFO ... 9 more
07.07 12:32:16 [Server] INFO Caused by: java.lang.StringIndexOutOfBoundsException: Range [0, -1) out of bounds for length 4
07.07 12:32:16 [Server] INFO at java.base/jdk.internal.util.Preconditions$1.apply(Preconditions.java:55) ~[?:?]
07.07 12:32:16 [Server] INFO at java.base/jdk.internal.util.Preconditions$1.apply(Preconditions.java:52) ~[?:?]
07.07 12:32:16 [Server] INFO at java.base/jdk.internal.util.Preconditions$4.apply(Preconditions.java:213) ~[?:?]
07.07 12:32:16 [Server] INFO at java.base/jdk.internal.util.Preconditions$4.apply(Preconditions.java:210) ~[?:?]
07.07 12:32:16 [Server] INFO at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:98) ~[?:?]
07.07 12:32:16 [Server] INFO at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckFromToIndex(Preconditions.java:112) ~[?:?]
07.07 12:32:16 [Server] INFO at java.base/jdk.internal.util.Preconditions.checkFromToIndex(Preconditions.java:349) ~[?:?]
07.07 12:32:16 [Server] INFO at java.base/java.lang.String.checkBoundsBeginEnd(String.java:4861) ~[?:?]
07.07 12:32:16 [Server] INFO at java.base/java.lang.String.substring(String.java:2830) ~[?:?]
07.07 12:32:16 [Server] INFO at images-2.3.4.jar/com.andavin.util.MinecraftVersion.(MinecraftVersion.java:180) ~[images-2.3.4.jar:?]
07.07 12:32:16 [Server] INFO at images-2.3.4.jar/com.andavin.images.Versioned.(Versioned.java:42) ~[images-2.3.4.jar:?]
07.07 12:32:16 [Server] INFO at images-2.3.4.jar/com.andavin.images.Images.(Images.java:97) ~[images-2.3.4.jar:?]
07.07 12:32:16 [Server] INFO at java.base/java.lang.Class.forName0(Native Method) ~[?:?]
07.07 12:32:16 [Server] INFO at java.base/java.lang.Class.forName(Class.java:534) ~[?:?]
07.07 12:32:16 [Server] INFO at java.base/java.lang.Class.forName(Class.java:513) ~[?:?]
07.07 12:32:16 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.(PluginClassLoader.java:78) ~[paper-api-1.21-R0.1-SNAPSHOT.jar:?]
07.07 12:32:16 [Server] INFO at io.papermc.paper.plugin.provider.type.spigot.SpigotPluginProvider.createInstance(SpigotPluginProvider.java:125) ~[paper-1.21.jar:1.21-46-2fa5e0e]
07.07 12:32:16 [Server] INFO ... 9 more
Help is appretiated! Thanks!