Skip to content

[1.20.1] ClassNotFoundException: org.bukkit.inventory.meta.BookMeta$Spigot due to CraftMetaItem static initialization #3666

@loumox85

Description

@loumox85

Minecraft Version : 1.20.1

Mohist Version : mohist-1.20.1-44055ae

Operating System : Windows 10

Logs : https://mclo.gs/zPTVksM

Mod list : I don't have any mods

Plugin list :

ajLeaderboards-2.10.1.jar
AuraSkills-2.3.8.jar
AuthMe-5.6.0.jar
AutoMessageSystem.jar
Clearlag 1.6.13 VER 1.18-1.21.jar
DecentHolograms-2.9.8.jar
EssentialsX-2.21.2.jar
LPC-3.6.2.jar
LuckPerms-Bukkit-5.5.20.jar
Maintenance-4.3.0.jar
multiverse-core-5.3.4.jar
multiverse-inventories-5.2.1.jar
PlaceholderAPI-2.11.7.jar
ProtocolLib.jar
PvPManager-4.1.9.jar
SignManager-1.0.1.jar
Statz-1.6.2.jar
SuperVanish-6.2.21.jar
TAB v5.3.2.jar
Vault.jar
WildRTP-all.jar
worldedit-bukkit-7.2.20.jar
worldguard-bukkit-7.0.9-dist.jar
zItemStacker-2.0.1-2.0.1.jar
ZNPCsPlus-2.1.0-SNAPSHOT.jar

Description of issue :

I am encountering a ClassNotFoundException error at startup or when loading plugin data (such as Multiverse-Inventories) on Mohist 1.20.1.

The error is caused by a failure to load a Spigot-specific inner class (BookMeta$Spigot) during the static initialization of the object metadata serialization class (ItemMeta). This issue suggests that the required inner class is missing or incorrectly referenced in the compiled Mohist JAR.

The class org.bukkit.inventory.meta.BookMeta$Spigot is an internal Spigot dependency required for CraftMetaBook initialization and is either not present or incorrectly mapped/shaded in the Mohist JAR compiled for 1.20.1.

Thanks in advance for fixing it, i know it could be long to fix ^^'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions