MythicMobs v5.9.0-SNAPSHOT-d0a50305 "io.lumine.mythic.bukkit.utils.version.NMSVersion.toString()" error
Summary
I am using the Premium version of MythicMobs and running a Paper server for Minecraft 1.21.5. I have encountered a java.lang.NullPointerException
with the message Cannot invoke "io.lumine.mythic.bukkit.utils.version.NMSVersion.toString()" because the return value of "io.lumine.mythic.bukkit.utils.version.ServerVersion.getNMS()" is null
when enabling MythicMobs, causing the plugin to fail to load and subsequently disable.
Steps to Reproduce
- Set up a Paper server running version 1.21.5-21-main@2948eb2 (2025-04-15T14:59:04Z).
- Install the Premium version of MythicMobs (v5.9.0-SNAPSHOT-d0a50305). Tried some recent snapshots too.
- Install additional plugins as listed in the server log (e.g., AuthMe, LuckPerms, WorldEdit, etc.).
- Start the server.
- Observe the server log for the MythicMobs initialization process.
Current Behavior
Upon starting the server, MythicMobs attempts to load but fails with the following error:
[19:33:08] [Server thread/ERROR]: Error occurred while enabling MythicMobs v5.9.0-SNAPSHOT-d0a50305 (Is it up to date?) java.lang.NullPointerException: Cannot invoke "io.lumine.mythic.bukkit.utils.version.NMSVersion.toString()" because the return value of "io.lumine.mythic.bukkit.utils.version.ServerVersion.getNMS()" is null
This causes MythicMobs to disable itself, producing additional NullPointerExceptions during the disabling process (e.g., Cannot invoke "io.lumine.mythic.core.mobs.MobExecutor.despawnAllMobs()"
and issues with saving data). As a result, MythicMobs functionality is completely unavailable, and custom mobs or mechanics configured with the plugin do not work.
Debug Log Snippet
[19:33:08] [Server thread/INFO]: [MythicMobs] Enabling MythicMobs v5.9.0-SNAPSHOT-d0a50305
[19:33:08] [Server thread/INFO]: [MythicMobs] Loading MythicMobs for Paper (MC: 1.21.5)...
[19:33:08] [Server thread/INFO]: [MythicMobs] The server is running Paper; enabled Paper exclusive functionality
[19:33:08] [Server thread/ERROR]: Error occurred while enabling MythicMobs v5.9.0-SNAPSHOT-d0a50305 (Is it up to date?)
java.lang.NullPointerException: Cannot invoke "io.lumine.mythic.bukkit.utils.version.NMSVersion.toString()" because the return value of "io.lumine.mythic.bukkit.utils.version.ServerVersion.getNMS()" is null
at MythicMobs.jar/io.lumine.mythic.bukkit.MythicBukkit.getVolatileCodeHandler(MythicBukkit.java:306) ~[MythicMobs.jar:?]
[...]
[19:33:08] [Server thread/INFO]: [MythicMobs] Disabling MythicMobs v5.9.0-SNAPSHOT-d0a50305
[19:33:08] [Server thread/WARN]: java.lang.NullPointerException: Cannot invoke "io.lumine.mythic.core.mobs.MobExecutor.despawnAllMobs()" because the return value of "io.lumine.mythic.bukkit.MythicBukkit.getMobManager()" is null
[...]
[19:33:08] [Server thread/INFO]: [MythicMobs] ✗An error occurred while saving data
[19:33:08] [Server thread/WARN]: java.lang.NullPointerException: Cannot invoke "io.lumine.mythic.core.mobs.MobExecutor.saveCachedActiveMobs()" because the return value of "io.lumine.mythic.bukkit.MythicBukkit.getMobManager()" is null
[...]