Zrips / CMI

117 stars 99 forks source link

Deathmessages error #9005

Closed bobhenl closed 3 months ago

bobhenl commented 3 months ago

Description of Issue

Hello, I'm error in console.

Version Information

[11:44:07 INFO]: --------------------------------------------------
[11:44:07 INFO]: CMI: 9.7.4.9 SqLite
[11:44:07 INFO]: CMILib: 1.5.1.0 
[11:44:07 INFO]: Server: Paper(2275) 1.21-R0.1-SNAPSHOT-
[11:44:07 INFO]: CMI economy: Enabled Vault: 1.7.3-CMI CMI Chat: Disabled 
[11:44:07 INFO]: Modules -> 54 enabled 12 disabled: disabledEnchants, customMessages, mirror, chatBubble, tablist, ranks, firstJoinMessages, playerCombat, votifier, sitAnimation, namePlates, playerChatTag
[11:44:07 INFO]: --------------------------------------------------

Errors

[00:04:48] [Server thread/ERROR]: Could not pass event PlayerDeathEvent to CMI v9.7.4.9
java.lang.NullPointerException: Cannot invoke "String.replace(java.lang.CharSequence, java.lang.CharSequence)" because "<local5>" is null
    at CMI-9.7.4.9.jar/com.Zrips.CMI.Modules.DeathMessages.DeathMessageListener.onPlayerDeathEvent(DeathMessageListener.java:458) ~[CMI-9.7.4.9.jar:?]
    at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor759.execute(Unknown Source) ~[?:?]
    at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[paper-mojangapi-1.21-R0.1-SNAPSHOT.jar:?]
    at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[paper-mojangapi-1.21-R0.1-SNAPSHOT.jar:1.21-2275-82ccc76]
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-mojangapi-1.21-R0.1-SNAPSHOT.jar:?]
    at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[purpur-1.21.jar:1.21-2275-82ccc76]
    at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:131) ~[purpur-1.21.jar:1.21-2275-82ccc76]
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:628) ~[paper-mojangapi-1.21-R0.1-SNAPSHOT.jar:?]
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerDeathEvent(CraftEventFactory.java:1033) ~[purpur-1.21.jar:1.21-2275-82ccc76]
    at net.minecraft.server.level.ServerPlayer.die(ServerPlayer.java:1057) ~[purpur-1.21.jar:1.21-2275-82ccc76]
    at net.minecraft.world.entity.LivingEntity.hurt(LivingEntity.java:1639) ~[purpur-1.21.jar:1.21-2275-82ccc76]
    at net.minecraft.world.entity.player.Player.hurt(Player.java:1041) ~[purpur-1.21.jar:1.21-2275-82ccc76]
    at net.minecraft.server.level.ServerPlayer.hurt(ServerPlayer.java:1235) ~[purpur-1.21.jar:1.21-2275-82ccc76]
    at net.minecraft.world.level.Explosion.explode(Explosion.java:593) ~[purpur-1.21.jar:1.21-2275-82ccc76]
    at net.minecraft.world.level.Level.explode(Level.java:1556) ~[purpur-1.21.jar:1.21-2275-82ccc76]
    at net.minecraft.server.level.ServerLevel.explode(ServerLevel.java:1889) ~[purpur-1.21.jar:1.21-2275-82ccc76]
    at net.minecraft.world.level.Level.explode(Level.java:1518) ~[purpur-1.21.jar:1.21-2275-82ccc76]
    at net.minecraft.world.entity.boss.enderdragon.EndCrystal.hurt(EndCrystal.java:202) ~[purpur-1.21.jar:1.21-2275-82ccc76]
    at net.minecraft.world.entity.player.Player.attack(Player.java:1383) ~[purpur-1.21.jar:1.21-2275-82ccc76]
    at net.minecraft.server.level.ServerPlayer.attack(ServerPlayer.java:2541) ~[purpur-1.21.jar:1.21-2275-82ccc76]
    at net.minecraft.server.network.ServerGamePacketListenerImpl$4.onAttack(ServerGamePacketListenerImpl.java:2878) ~[purpur-1.21.jar:1.21-2275-82ccc76]
    at net.minecraft.network.protocol.game.ServerboundInteractPacket$1.dispatch(ServerboundInteractPacket.java:29) ~[purpur-1.21.jar:1.21-2275-82ccc76]
    at net.minecraft.network.protocol.game.ServerboundInteractPacket.dispatch(ServerboundInteractPacket.java:89) ~[purpur-1.21.jar:1.21-2275-82ccc76]
    at net.minecraft.server.network.ServerGamePacketListenerImpl.handleInteract(ServerGamePacketListenerImpl.java:2787) ~[purpur-1.21.jar:1.21-2275-82ccc76]
    at net.minecraft.network.protocol.game.ServerboundInteractPacket.handle(ServerboundInteractPacket.java:76) ~[purpur-1.21.jar:1.21-2275-82ccc76]
    at net.minecraft.network.protocol.game.ServerboundInteractPacket.handle(ServerboundInteractPacket.java:14) ~[purpur-1.21.jar:1.21-2275-82ccc76]
    at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:56) ~[purpur-1.21.jar:1.21-2275-82ccc76]
    at net.minecraft.server.TickTask.run(TickTask.java:18) ~[purpur-1.21.jar:1.21-2275-82ccc76]
    at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:151) ~[purpur-1.21.jar:1.21-2275-82ccc76]
    at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[purpur-1.21.jar:1.21-2275-82ccc76]
    at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1572) ~[purpur-1.21.jar:1.21-2275-82ccc76]
    at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:201) ~[purpur-1.21.jar:1.21-2275-82ccc76]
    at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:125) ~[purpur-1.21.jar:1.21-2275-82ccc76]
    at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1549) ~[purpur-1.21.jar:1.21-2275-82ccc76]
    at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1542) ~[purpur-1.21.jar:1.21-2275-82ccc76]
    at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:135) ~[purpur-1.21.jar:1.21-2275-82ccc76]
    at net.minecraft.server.MinecraftServer.managedBlock(MinecraftServer.java:1501) ~[purpur-1.21.jar:1.21-2275-82ccc76]
    at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1508) ~[purpur-1.21.jar:1.21-2275-82ccc76]
    at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1353) ~[purpur-1.21.jar:1.21-2275-82ccc76]
    at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:333) ~[purpur-1.21.jar:1.21-2275-82ccc76]
    at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
[00:04:48] [Server thread/INFO]: Reaper _N3rspa was blown up by Reaper _N3rspa

Relevant Config Sections

Is it because I disabled this?

DeathMessages -> Locale_EN: Escaping: []

(I set it to [] instead of the previous setting, because placeholders still weren't replaced even after xx versions https://github.com/Zrips/CMI/issues/8815

Relevant Plugins

No response

Agreements

Zrips commented 3 months ago

Will be fixed with next version