CryptoMorin / XSeries

Library for cross-version Minecraft Bukkit support and various efficient API methods.
https://www.spigotmc.org/threads/378136/
MIT License
403 stars 126 forks source link

[XSound] - "java.lang.NoClassDefFoundError: org/bukkit/SoundCategory" on 1.8.8 #242

Closed cervinakuy closed 7 months ago

cervinakuy commented 8 months ago

Description Hello, I'm the developer of KitPvP. KitPvP has used XSeries for years at this point - thank you for everything you do.

Anyway, I've been receiving multiple reports of this error on 1.8.8: https://pastebin.com/5ThHiNRy

Code references:

At a glance, SoundCategory indeed does not exist in Spigot 1.8.8, so the error does seem to make sense. I would imagine XSound is accidentally loading SoundCategory-related code when it shouldn't be (e.g. 1.8.8 version or greater, where SoundCategory does not exist).

Version In the particular pastebin I've provided, Paper Spigot 1.8.8. I suppose this problem could also apply to versions >= 1.8.8 where SoundCategory also does not exist.

CryptoMorin commented 8 months ago

Yes, it looks like SoundCategory was introduced in v1.11 I'll fix it

cervinakuy commented 7 months ago

Hi, any updates on this?

I'm still receiving messages about this issue from plugin users, and unfortunately, it seems the error prevents the plugin from loading/enabling at all. If helpful, it seems another consumer of XSeries/XSound developed a fix, maybe it could serve as a starting point.

CryptoMorin commented 7 months ago

I'm sorry for the late reply. I was away for a while. It's fixed in v9.10.0 now.