Skip to content

[Bug] NoSuchMethodError: EntityPotionEffectEvent#getEntity() on Potion Effect Application #376

Description

@Laughnt

✔️ Pre-check

  • [✔️] Tested with the latest snapshot of BetterModel from Modrinth
  • [✔️] Confirmed the issue occurs without other optional/experimental plugins or clients (see Disclaimer below)

🐞 Problem Description

BetterModel 3.2.0 appears to have an API compatibility issue related to EntityPotionEffectEvent. The exception is triggered when an Armor Stand receives a potion effect. In my test case, the Armor Stand was spawned through MythicMobs, although the error itself appears to originate from BetterModel's event listener.
Error:

java.lang.NoSuchMethodError: 'org.bukkit.entity.LivingEntity org.bukkit.event.entity.EntityPotionEffectEvent.getEntity()'
    at bettermodel-3.2.0-paper.jar//kr.toxicity.model.bukkit.manager.EntityManager$standardListener$1.potion(EntityManager.kt:90)

The potion effect itself is applied correctly and the MythicMobs mechanic continues to function normally. The exception only appears to affect BetterModel's event listener.
Based on the stacktrace, BetterModel may be referencing an outdated EntityPotionEffectEvent#getEntity() API signature, resulting in a NoSuchMethodError at runtime.


📜 Server Log

Your error log if exists: https://mclo.gs/I9vxsGl

🖼️ Screenshot / Video

Your in-game screenshot.
Image

🧪 Test Model / Code

Upload the model, resource pack, or test code that can reproduce the issue if possible.
build.zip

🌍 Environment

  • OS: Windows
  • Server software & version: Leaf 1.12.11 - 26.2 (Paper fork.)

Disclaimer
The following environments are not supported, and issues occurring under these conditions will not be handled:
- Informal / modified launchers (e.g., Feather client)
- Closed-source mods/plugins (Optifine, ItemsAdder, Nexo, etc.)
- Hybrid server platforms (e.g., Arclight)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions