Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 132
    • Issues 132
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Issues
  • #1893

Closed
Open
Created Apr 16, 2025 by EK@EmreCanKURAN

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

  1. Set up a Paper server running version 1.21.5-21-main@2948eb2 (2025-04-15T14:59:04Z).
  2. Install the Premium version of MythicMobs (v5.9.0-SNAPSHOT-d0a50305). Tried some recent snapshots too.
  3. Install additional plugins as listed in the server log (e.g., AuthMe, LuckPerms, WorldEdit, etc.).
  4. Start the server.
  5. 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.

Server Log File

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
    [...]
Edited Apr 17, 2025 by Brickgard
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking