Bonjour,
Je rencontre un problème avec le plugin MythicMobs. Lorsque l' événement de spawn (CreatureSpawnEvent) est déclenché, une erreur de type NullPointerException se produit. Voici le message d'erreur complet que je reçois dans les logs du serveur :
Version de MythicMobs : 5.6.1
Version de Citizens : v2.0.33-SNAPSHOT (build 3311)
Version du serveur : 1.18.2 (Paper version git-Paper-387 (MC: 1.18.2) (Implementing API version 1.18.2-R0.1-SNAPSHOT) (Git: df630a2 on ver/1.18.2))
Plugins sur le serveur : (26) BetonQuest, Citizens, CustomCraftingRecipe, fake-block, GallionEconomy, GPS, hCore*, HolographicDisplays, ItemsAdder, LaPensine, LightAPI, LoneLibs, LPC, LuckPerms, ModelEngine, Multiverse-Core, MythicCrucible, MythicMobs, PlaceholderAPI, ProtocolLib, SimpleScore, TAB, VoidGen, Vulcan, WorldEdit, WorldGuard
Merci d'avance pour votre aide !
Je rencontre un problème avec le plugin MythicMobs. Lorsque l' événement de spawn (CreatureSpawnEvent) est déclenché, une erreur de type NullPointerException se produit. Voici le message d'erreur complet que je reçois dans les logs du serveur :
Code:
[17:40:32 ERROR]: [MythicMobs] [EVENTS] Exception thrown whilst handling event: org.bukkit.event.entity.CreatureSpawnEvent
[17:40:33 WARN]: java.lang.NullPointerException: Cannot invoke "net.minecraft.world.level.SpawnerCreature$d.a()" because "spawnState" is null
[17:40:33 WARN]: at MythicMobs-5.6.1.jar//io.lumine.mythic.core.volatilecode.v1_18_R2.VolatileSpawningHandlerImpl.getSpawnState(VolatileSpawningHandlerImpl.java:89)
[17:40:33 WARN]: at MythicMobs-5.6.1.jar//io.lumine.mythic.core.spawning.random.RandomSpawnerManager.getSpawnState(RandomSpawnerManager.java:260)
[17:40:33 WARN]: at MythicMobs-5.6.1.jar//io.lumine.mythic.core.spawning.random.RandomSpawnerManager.handleSpawnEvent(RandomSpawnerManager.java:222)
[17:40:33 WARN]: at MythicMobs-5.6.1.jar//io.lumine.mythic.bukkit.listeners.MobListeners.lambda$load$8(MobListeners.java:174)
[17:40:33 WARN]: at MythicMobs-5.6.1.jar//io.lumine.mythic.bukkit.utils.Delegates$ConsumerToBiConsumerSecond.accept(Delegates.java:144)
[17:40:33 WARN]: at MythicMobs-5.6.1.jar//io.lumine.mythic.bukkit.utils.events.functional.single.EventListener.execute(EventListener.java:131)
[17:40:33 WARN]: at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80)
[17:40:33 WARN]: at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70)
[17:40:33 WARN]: at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:669)
[17:40:33 WARN]: at org.bukkit.craftbukkit.v1_18_R2.event.CraftEventFactory.callCreatureSpawnEvent(CraftEventFactory.java:739)
[17:40:33 WARN]: at org.bukkit.craftbukkit.v1_18_R2.event.CraftEventFactory.doEntityAddEventCalling(CraftEventFactory.java:644)
[17:40:33 WARN]: at net.minecraft.server.level.WorldServer.addEntity(WorldServer.java:1423)
[17:40:33 WARN]: at net.minecraft.server.level.WorldServer.addFreshEntity(WorldServer.java:1332)
[17:40:33 WARN]: at Citizens_5.jar//net.citizensnpcs.nms.v1_18_R2.util.NMSImpl.addEntityToWorld(NMSImpl.java:357)
[17:40:33 WARN]: at Citizens_5.jar//net.citizensnpcs.util.NMS.addEntityToWorld(NMS.java:78)
[17:40:33 WARN]: at Citizens_5.jar//net.citizensnpcs.npc.AbstractEntityController.spawn(AbstractEntityController.java:54)
[17:40:33 WARN]: at Citizens_5.jar//net.citizensnpcs.npc.CitizensNPC.spawn(CitizensNPC.java:317)
[17:40:33 WARN]: at Citizens_5.jar//net.citizensnpcs.npc.CitizensNPC.load(CitizensNPC.java:184)
[17:40:33 WARN]: at Citizens_5.jar//net.citizensnpcs.api.npc.SimpleNPCDataStore.loadInto(SimpleNPCDataStore.java:59)
[17:40:33 WARN]: at Citizens_5.jar//net.citizensnpcs.Citizens$CitizensLoadTask.run(Citizens.java:610)
[17:40:33 WARN]: at org.bukkit.craftbukkit.v1_18_R2.scheduler.CraftTask.run(CraftTask.java:101)
[17:40:33 WARN]: at org.bukkit.craftbukkit.v1_18_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483)
[17:40:33 WARN]: at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1173)
[17:40:33 WARN]: at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:316)
[17:40:33 WARN]: at java.base/java.lang.Thread.run(Thread.java:840)
[17:40:33 ERROR]: [MythicMobs] [EVENTS] Exception thrown whilst handling event: org.bukkit.event.entity.CreatureSpawnEvent
[17:40:33 WARN]: java.lang.NullPointerException: Cannot invoke "net.minecraft.world.level.SpawnerCreature$d.a()" because "spawnState" is null
[17:40:33 WARN]: at MythicMobs-5.6.1.jar//io.lumine.mythic.core.volatilecode.v1_18_R2.VolatileSpawningHandlerImpl.getSpawnState(VolatileSpawningHandlerImpl.java:89)
[17:40:33 WARN]: at MythicMobs-5.6.1.jar//io.lumine.mythic.core.spawning.random.RandomSpawnerManager.getSpawnState(RandomSpawnerManager.java:260)
[17:40:33 WARN]: at MythicMobs-5.6.1.jar//io.lumine.mythic.core.spawning.random.RandomSpawnerManager.handleSpawnEvent(RandomSpawnerManager.java:222)
[17:40:33 WARN]: at MythicMobs-5.6.1.jar//io.lumine.mythic.bukkit.listeners.MobListeners.lambda$load$8(MobListeners.java:174)
[17:40:33 WARN]: at MythicMobs-5.6.1.jar//io.lumine.mythic.bukkit.utils.Delegates$ConsumerToBiConsumerSecond.accept(Delegates.java:144)
[17:40:33 WARN]: at MythicMobs-5.6.1.jar//io.lumine.mythic.bukkit.utils.events.functional.single.EventListener.execute(EventListener.java:131)
[17:40:33 WARN]: at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80)
[17:40:33 WARN]: at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70)
[17:40:33 WARN]: at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:669)
[17:40:33 WARN]: at org.bukkit.craftbukkit.v1_18_R2.event.CraftEventFactory.callCreatureSpawnEvent(CraftEventFactory.java:739)
[17:40:33 WARN]: at org.bukkit.craftbukkit.v1_18_R2.event.CraftEventFactory.doEntityAddEventCalling(CraftEventFactory.java:644)
[17:40:33 WARN]: at net.minecraft.server.level.WorldServer.addEntity(WorldServer.java:1423)
[17:40:33 WARN]: at net.minecraft.server.level.WorldServer.addFreshEntity(WorldServer.java:1332)
[17:40:33 WARN]: at Citizens_5.jar//net.citizensnpcs.nms.v1_18_R2.util.NMSImpl.addEntityToWorld(NMSImpl.java:357)
[17:40:33 WARN]: at Citizens_5.jar//net.citizensnpcs.util.NMS.addEntityToWorld(NMS.java:78)
[17:40:33 WARN]: at Citizens_5.jar//net.citizensnpcs.npc.AbstractEntityController.spawn(AbstractEntityController.java:54)
[17:40:33 WARN]: at Citizens_5.jar//net.citizensnpcs.npc.CitizensNPC.spawn(CitizensNPC.java:317)
[17:40:33 WARN]: at Citizens_5.jar//net.citizensnpcs.npc.CitizensNPC.load(CitizensNPC.java:184)
[17:40:33 WARN]: at Citizens_5.jar//net.citizensnpcs.api.npc.SimpleNPCDataStore.loadInto(SimpleNPCDataStore.java:59)
[17:40:33 WARN]: at Citizens_5.jar//net.citizensnpcs.Citizens$CitizensLoadTask.run(Citizens.java:610)
[17:40:33 WARN]: at org.bukkit.craftbukkit.v1_18_R2.scheduler.CraftTask.run(CraftTask.java:101)
[17:40:33 WARN]: at org.bukkit.craftbukkit.v1_18_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483)
[17:40:33 WARN]: at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1173)
[17:40:33 WARN]: at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:316)
[17:40:33 WARN]: at java.base/java.lang.Thread.run(Thread.java:840)
Version de MythicMobs : 5.6.1
Version de Citizens : v2.0.33-SNAPSHOT (build 3311)
Version du serveur : 1.18.2 (Paper version git-Paper-387 (MC: 1.18.2) (Implementing API version 1.18.2-R0.1-SNAPSHOT) (Git: df630a2 on ver/1.18.2))
Plugins sur le serveur : (26) BetonQuest, Citizens, CustomCraftingRecipe, fake-block, GallionEconomy, GPS, hCore*, HolographicDisplays, ItemsAdder, LaPensine, LightAPI, LoneLibs, LPC, LuckPerms, ModelEngine, Multiverse-Core, MythicCrucible, MythicMobs, PlaceholderAPI, ProtocolLib, SimpleScore, TAB, VoidGen, Vulcan, WorldEdit, WorldGuard
Merci d'avance pour votre aide !