PlayPro / CoreProtect

CoreProtect is a blazing fast data logging and anti-griefing tool for Minecraft servers.
Artistic License 2.0
644 stars 323 forks source link

1.21 changes InventoryView from an abstract class to an interface #567

Closed CyberFlameGO closed 3 months ago

CyberFlameGO commented 3 months ago

Title; produces

java.lang.IncompatibleClassChangeError: Found class org.bukkit.inventory.InventoryView, but interface was expected
    at CoreProtect-22.4.jar//net.coreprotect.listener.player.InventoryChangeListener.onInventoryClick(InventoryChangeListener.java:254)

when running on versions less than 1.21

Intelli commented 3 months ago

Purpur issue, resolved in the latest Purpur 1.21 builds.

CyberFlameGO commented 3 months ago

No I'm on Purpur 1.20.6

Intelli commented 3 months ago

Yes, and it’s fixed in the 1.21 builds

CyberFlameGO commented 3 months ago

My bad there - I meant that (from Spigot's git commit) it looks like the code won't work on any servers with a lower version than 1.21 which is why I created the issue (unless that's out of scope)

Intelli commented 3 months ago

The issue isn’t something that can be fixed by CoreProtect.

Options are to use Purpur 1.21, or use Paper 1.20.6

CyberFlameGO commented 3 months ago

Ah alrighty