Skip to content

ModelEngine fails on Arclight 1.21.1 because Server#getMinecraftVersion() no longer exists #2035

Description

@angelofwar25-png

I have tried that...

  • I am using the latest Arclight build

  • I have read the FAQ and Troubleshooting, they didn't solve my issue

  • I have searched existing Issues and found no duplicates

  • The mods and/or plugins I use support my Minecraft version

  • I have installed all required dependencies for the mods and/or plugins

  • I have updated all mods and/or plugins to their latest versions

  • This issue cannot be reproduced on a Spigot server
    (Mod-related issues are considered non-reproducible on Spigot)

  • This issue cannot be reproduced on the Mod Loader server (Forge/NeoForge/Fabric)
    (Plugin-related issues are considered non-reproducible on mod loaders)

Minecraft Version

1.21.1

Arclight Version

arclight-neoforge-1.21.1-1.0.2-SNAPSHOT-a5474e0.jar

OS Version

Rocky Linux 8

Java Version

Temurin 21.0.9+10-LTS

Related Mods and/or Plugins (Name & Version)

Plugins
Model Engine

Issue Description

Hello! I’m currently trying to run ModelEngine R4.0.9 on an Arclight 1.21.1 hybrid server, and the plugin fails to load on startup. The error points to a missing Bukkit API method:

java.lang.NoSuchMethodError: 'java.lang.String org.bukkit.Server.getMinecraftVersion()'

This is the full stack trace excerpt:

java.lang.NoSuchMethodError: 'java.lang.String org.bukkit.Server.getMinecraftVersion()'
at com.ticxo.modelengine.api.ServerInfo.(ServerInfo.java:25)
at com.ticxo.modelengine.core.ModelEngine.configureNMSHandler(ModelEngine.java:312)
at com.ticxo.modelengine.core.ModelEngine.onEnable(ModelEngine.java:106)
...

It seems that newer Bukkit/Spigot-like hybrids (like Arclight 1.21.1) removed getMinecraftVersion(), and ModelEngine tries to call it during initialization, causing the plugin to fail before generating config folders.

⚠ Environment

Server type: Arclight 1.21.1 (NeoForge + Bukkit hybrid)

ModelEngine version: R4.0.9

MythicMobs version: Latest premium (not relevant because ModelEngine fails before hooking)

Java: 17

❓ Question

Is there a quick workaround or temporary patch available for hybrid servers that no longer use Server#getMinecraftVersion()?

Even a manual config option or experimental build would be extremely helpful for now, since many modded servers rely on Arclight.

Thank you very much for your hard work on this amazing plugin! 🙏

Steps to Reproduce

Install Arclight 1.21.1 (latest build).(NeoForge)

Copy ModelEngine R4.0.9 into the /plugins/ folder.

Start the server.

ModelEngine fails during startup before creating its data folders.

Server Logs

[04:31:21 ERROR] [Minecraft]: Error occurred while enabling ModelEngine vR4.0.9 (Is it up to date?) java.lang.NoSuchMethodError: 'java.lang.String org.bukkit.Server.getMinecraftVersion()' at ModelEngine/com.ticxo.modelengine.api.ServerInfo.(ServerInfo.java:25) ~[?:?] at ModelEngine/com.ticxo.modelengine.core.ModelEngine.configureNMSHandler(ModelEngine.java:312) ~[?:?] at ModelEngine/com.ticxo.modelengine.core.ModelEngine.onEnable(ModelEngine.java:106) ~[?:?] at TRANSFORMER/arclight@1.0.2-SNAPSHOT+a5474e0/org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPluginMixin.java:267) ~[arclight-1.21.1-1.0.2-SNAPSHOT-a5474e0.jar%23279!/:arclight-neoforge-1.21.1-1.0.2-SNAPSHOT+a5474e0] at TRANSFORMER/arclight@1.0.2-SNAPSHOT+a5474e0/org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoaderMixin.java:342) ~[arclight-1.21.1-1.0.2-SNAPSHOT-a5474e0.jar%23279!/:arclight-neoforge-1.21.1-1.0.2-SNAPSHOT+a5474e0] at TRANSFORMER/arclight@1.0.2-SNAPSHOT+a5474e0/org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManagerAccessor.java:492) ~[arclight-1.21.1-1.0.2-SNAPSHOT-a5474e0.jar%23279!/:arclight-neoforge-1.21.1-1.0.2-SNAPSHOT+a5474e0] at TRANSFORMER/arclight@1.0.2-SNAPSHOT+a5474e0/org.bukkit.craftbukkit.v1_21_R1.CraftServer.enablePlugin(CraftServerMixin.java:576) ~[arclight-1.21.1-1.0.2-SNAPSHOT-a5474e0.jar%23279!/:arclight-neoforge-1.21.1-1.0.2-SNAPSHOT+a5474e0] at TRANSFORMER/arclight@1.0.2-SNAPSHOT+a5474e0/org.bukkit.craftbukkit.v1_21_R1.CraftServer.enablePlugins(CraftServerMixin.java:490) ~[arclight-1.21.1-1.0.2-SNAPSHOT-a5474e0.jar%23279!/:arclight-neoforge-1.21.1-1.0.2-SNAPSHOT+a5474e0] at TRANSFORMER/minecraft@1.21.1/net.minecraft.server.dedicated.DedicatedServer.handler$bfb000$arclight$loadPlugins(DedicatedServerMixin_NeoForge.java:753) ~[server-1.21.1-20240808.144430-srg.jar%23277!/:?] at TRANSFORMER/minecraft@1.21.1/net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServerMixin_NeoForge.java:183) ~[server-1.21.1-20240808.144430-srg.jar%23277!/:?] at TRANSFORMER/minecraft@1.21.1/net.minecraft.server.MinecraftServer.runServer(MinecraftServerMixin_NeoForge.java:670) ~[server-1.21.1-20240808.144430-srg.jar%23277!/:?] at TRANSFORMER/minecraft@1.21.1/net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServerMixin_NeoForge.java:267) ~[server-1.21.1-20240808.144430-srg.jar%23277!/:?] at java.base/java.lang.Thread.run(Thread.java:1583) [?:?] [04:31:21 WARN] [n.n.n.s.ServerLifecycleHooks]: Detected minecraft:ocelot that was registered with CREATURE mob category but was added under MONSTER mob category for biomesoplenty:rainforest biome! Mobs should be added to biomes under the same mob category that the mob was registered as to prevent mob cap spawning issues. [04:31:21 WARN] [n.n.n.s.ServerLifecycleHooks]: Detected minecraft:ocelot that was registered with CREATURE mob category but was added under MONSTER mob category for biomesoplenty:rocky_rainforest biome! Mobs should be added to biomes under the same mob category that the mob was registered as to prevent mob cap spawning issues.

The Server Pack for Reproduce

No response

Metadata

Metadata

Assignees

Labels

Status: TriageDefault label, waiting for triage and check

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions