Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error After Death #172

Open
1 of 3 tasks
whiskeytr opened this issue Jan 4, 2025 · 3 comments
Open
1 of 3 tasks

Error After Death #172

whiskeytr opened this issue Jan 4, 2025 · 3 comments
Labels
bug Something isn't working invalid This doesn't seem right

Comments

@whiskeytr
Copy link

whiskeytr commented Jan 4, 2025

Checklist

What behaviour is observed?

When a player dies, the server throws a NullPointerException error in the DeathMessages plugin. The error trace suggests that the issue occurs when attempting to append a Component in the EntityDeath event listener.

[04:36:26 ERROR]: Could not pass event PlayerDeathEvent to DeathMessages v1.4.20 java.lang.NullPointerException: like at java.base/java.util.Objects.requireNonNull(Objects.java:259) ~[?:?] at net.kyori.adventure.text.Component.append(Component.java:1994) ~[adventure-api-4.17.0.jar:?] at net.kyori.adventure.text.ScopedComponent.append(ScopedComponent.java:83) ~[adventure-api-4.17.0.jar:?] at net.kyori.adventure.text.Component.append(Component.java:1983) ~[adventure-api-4.17.0.jar:?] at net.kyori.adventure.text.ScopedComponent.append(ScopedComponent.java:77) ~[adventure-api-4.17.0.jar:?] at DeathMessages-Modern-1.4.20.jar/dev.mrshawn.deathmessages.listeners.EntityDeath.lambda$onEntityDeath$1(EntityDeath.java:53) ~[DeathMessages-Modern-1.4.20.jar:?] at java.base/java.util.Optional.ifPresent(Optional.java:178) ~[?:?] at DeathMessages-Modern-1.4.20.jar/dev.mrshawn.deathmessages.listeners.EntityDeath.onEntityDeath(EntityDeath.java:37) ~[DeathMessages-Modern-1.4.20.jar:?] at DeathMessages-Modern-1.4.20.jar/dev.mrshawn.deathmessages.listeners.EntityDeath.onEntityDeath_HIGH(EntityDeath.java:179) ~[DeathMessages-Modern-1.4.20.jar:?] at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor920.execute(Unknown Source) ~[?:?] at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:?] at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:1.21.1-21-cfa3c61] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:?] at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[pufferfish-1.21.1.jar:1.21.1-21-cfa3c61] at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:131) ~[pufferfish-1.21.1.jar:1.21.1-21-cfa3c61] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:630) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:?] at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerDeathEvent(CraftEventFactory.java:1030) ~[pufferfish-1.21.1.jar:1.21.1-21-cfa3c61] at net.minecraft.server.level.ServerPlayer.die(ServerPlayer.java:1038) ~[pufferfish-1.21.1.jar:1.21.1-21-cfa3c61] at net.minecraft.world.entity.LivingEntity.hurt(LivingEntity.java:1598) ~[pufferfish-1.21.1.jar:1.21.1-21-cfa3c61] at net.minecraft.world.entity.player.Player.hurt(Player.java:1002) ~[pufferfish-1.21.1.jar:1.21.1-21-cfa3c61] at net.minecraft.server.level.ServerPlayer.hurt(ServerPlayer.java:1205) ~[pufferfish-1.21.1.jar:1.21.1-21-cfa3c61] at net.minecraft.world.level.Explosion.explode(Explosion.java:575) ~[pufferfish-1.21.1.jar:1.21.1-21-cfa3c61] at net.minecraft.world.level.Level.explode(Level.java:1527) ~[pufferfish-1.21.1.jar:1.21.1-21-cfa3c61] at net.minecraft.server.level.ServerLevel.explode(ServerLevel.java:1793) ~[pufferfish-1.21.1.jar:1.21.1-21-cfa3c61] at net.minecraft.world.level.Level.explode(Level.java:1468) ~[pufferfish-1.21.1.jar:1.21.1-21-cfa3c61] at net.minecraft.world.level.Level.explode(Level.java:1465) ~[pufferfish-1.21.1.jar:1.21.1-21-cfa3c61] at org.bukkit.craftbukkit.CraftWorld.createExplosion(CraftWorld.java:950) ~[pufferfish-1.21.1.jar:1.21.1-21-cfa3c61] at org.bukkit.craftbukkit.CraftWorld.createExplosion(CraftWorld.java:981) ~[pufferfish-1.21.1.jar:1.21.1-21-cfa3c61] at org.bukkit.craftbukkit.CraftWorld.createExplosion(CraftWorld.java:973) ~[pufferfish-1.21.1.jar:1.21.1-21-cfa3c61] at org.bukkit.craftbukkit.CraftWorld.createExplosion(CraftWorld.java:968) ~[pufferfish-1.21.1.jar:1.21.1-21-cfa3c61] at org.bukkit.craftbukkit.CraftWorld.createExplosion(CraftWorld.java:963) ~[pufferfish-1.21.1.jar:1.21.1-21-cfa3c61] at MTP.jar/me.xBuhari.mtp.metintasi.MetinAction.lambda$action$4(Unknown Source) ~[MTP.jar:?] at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:86) ~[pufferfish-1.21.1.jar:1.21.1-21-cfa3c61] at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:475) ~[pufferfish-1.21.1.jar:1.21.1-21-cfa3c61] at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1731) ~[pufferfish-1.21.1.jar:1.21.1-21-cfa3c61] at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:476) ~[pufferfish-1.21.1.jar:1.21.1-21-cfa3c61] at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1603) ~[pufferfish-1.21.1.jar:1.21.1-21-cfa3c61] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1303) ~[pufferfish-1.21.1.jar:1.21.1-21-cfa3c61] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:330) ~[pufferfish-1.21.1.jar:1.21.1-21-cfa3c61] at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]

Expected behaviour

Plugin Version: DeathMessages v1.4.20
Server Version: Paper 1.21.1 (Pufferfish fork 1.21.1-21-cfa3c61)
Error Message: NullPointerException

To Reproduce

Install the DeathMessages plugin (v1.4.20) on a Minecraft server running Paper (version 1.21.1).
Trigger a PlayerDeathEvent by killing a player.
Observe the console for errors.

Spark profiler link

I can give from Discord

Error log (if applicable)

No response

DeathMessages configuration (if applicable)

No response

@whiskeytr whiskeytr added the bug Something isn't working label Jan 4, 2025
@Dreeam-qwq Dreeam-qwq added the invalid This doesn't seem right label Jan 4, 2025
@Dreeam-qwq
Copy link
Member

Why use outdated version?

@whiskeytr
Copy link
Author

Why use outdated version?

Im not using dev version Im using latest spigot version.

@Dreeam-qwq
Copy link
Member

Why use outdated version?

Im not using dev version Im using latest spigot version.

Then use the dev version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants