Closed jurohn closed 5 months ago
16.06 20:04:06 [Server] Server thread/[ERROR] Error occurred while enabling InvSeePlusPlus v0.28.0 (Is it up to date?)
16.06 20:04:06 [Server] [INFO] java.lang.IncompatibleClassChangeError: class com.janboerman.invsee.spigot.api.SpectatorInventoryView has interface org.bukkit.inventory.InventoryView as super class
16.06 20:04:06 [Server] [INFO] at java.base/java.lang.ClassLoader.defineClass1(Native Method) ~[?:?]
16.06 20:04:06 [Server] [INFO] at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1027) ~[?:?]
16.06 20:04:06 [Server] [INFO] at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150) ~[?:?]
16.06 20:04:06 [Server] [INFO] at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:206) ~[spigot-api-1.21-R0.1-SNAPSHOT.jar:?]
16.06 20:04:06 [Server] [INFO] at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:593) ~[?:?]
16.06 20:04:06 [Server] [INFO] at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:117) ~[spigot-api-1.21-R0.1-SNAPSHOT.jar:?]
16.06 20:04:06 [Server] [INFO] at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:112) ~[spigot-api-1.21-R0.1-SNAPSHOT.jar:?]
16.06 20:04:06 [Server] [INFO] at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526) ~[?:?]
16.06 20:04:06 [Server] [INFO] at com.janboerman.invsee.spigot.Impl_1_21.
Looks like Spigot broke their api incompatibly. I will try to land a fix tomorrow. This is the change that caused the problem: https://hub.spigotmc.org/stash/projects/SPIGOT/repos/bukkit/commits/2b4b6d14241d3d96eb6b7d1888176146dc5895d4#src%2Fmain%2Fjava%2Forg%2Fbukkit%2Finventory%2FInventoryView.java
There is a PR that fixes compatibility again in CraftBukkit; https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/pull-requests/1425/overview
I will have to update my plugin later because this PR only fixes binary compatibility, not source-compatibility; but at least when this lands users should be able to run the plugin fine again.
I will keep this issue open until InvSee++ is also updated so others can compile it again.
Managed to bump out a quick release: https://github.com/Jannyboy11/InvSee-plus-plus/releases/tag/v0.29.0 I haven't tested it myself yet, but it should be good to go.
Note that if you use other plugins which hook into InvSee++, those might be broken currently.
Managed to bump out a quick release: https://github.com/Jannyboy11/InvSee-plus-plus/releases/tag/v0.29.0 I haven't tested it myself yet, but it should be good to go.
Note that if you use other plugins which hook into InvSee++, those might be broken currently.
I tested this release today and it works fine.
Whatever i try, this is the awnser.