Skip to content

Bug Report #145

@plulol

Description

@plulol

Description
ImageFrame fails to enable on Paper 1.21.11 due to a missing CraftBukkit class.
All ImageFrame commands then throw internal errors.

Server Software:
Paper 1.21.11 (build 39)
Java 21
Host: Shockbyte (shared)

ImageFrame Version:
ImageFrame 1.9.0.0 (Paper build from Modrinth)

Error:
ImageFrame fails during onEnable with the following error:

java.lang.NoClassDefFoundError: org/bukkit/craftbukkit/v1_21_R7/inventory/CraftItemStack
at ImageFrame-1.9.0.0.jar//com.loohp.imageframe.nms.NMS.getInstance(NMS.java:37)
at ImageFrame-1.9.0.0.jar//com.loohp.imageframe.invisibleframe.InvisibleFrameManager.withInvisibleItemFrameData(InvisibleFrameManager.java:130)
at ImageFrame-1.9.0.0.jar//com.loohp.imageframe.invisibleframe.InvisibleFrameManager.addRecipes(InvisibleFrameManager.java:107)
at ImageFrame-1.9.0.0.jar//com.loohp.imageframe.invisibleframe.InvisibleFrameManager.(InvisibleFrameManager.java:93)
at ImageFrame-1.9.0.0.jar//com.loohp.imageframe.ImageFrame.onEnable(ImageFrame.java:279)

Expected Behavior:
ImageFrame should enable successfully on Paper 1.21.11 as advertised.

Actual Behavior:
Plugin fails to enable; all /imageframe commands throw internal errors.

Downgrading Paper to 1.21.10 fixes the issue.
This appears to be caused by hard-coded CraftBukkit version access (v1_21_R7),
which no longer exists in Paper 1.21.11.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions