Player Death Bug
Console error occurs upon a player death caused by another player / entitiy
To Reproduce
Steps to reproduce the behavior:
Kill a Player
Expected behavior
Not logging the Player Death Checker
Given Error
[13:06:28 ERROR]: Could not pass event PlayerDeathEvent to Logger v1.7.1
java.lang.NullPointerException: null
at java.util.Objects.requireNonNull(Objects.java:208) ~[?:?]
at com.carpour.logger.Events.OnPlayerDeath.onDeath(OnPlayerDeath.java:54) ~[Logger-1.7.1.jar:?]
at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor265.execute(Unknown Source) ~[?:?]
at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:75) ~[pufferfish-api-1.18.1-R0.1-SNAPSHOT.jar:?]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:76) ~[pufferfish-api-1.18.1-R0.1-SNAPSHOT.jar:git-Pufferfish-42]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[pufferfish-api-1.18.1-R0.1-SNAPSHOT.jar:?]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:630) ~[pufferfish-api-1.18.1-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.v1_18_R1.event.CraftEventFactory.callPlayerDeathEvent(CraftEventFactory.java:896) ~[pufferfish-1.18.1.jar:git-Pufferfish-42]
at net.minecraft.server.level.ServerPlayer.die(ServerPlayer.java:862) ~[?:?]
at net.minecraft.world.entity.LivingEntity.hurt(LivingEntity.java:1456) ~[?:?]
at net.minecraft.world.entity.player.Player.hurt(Player.java:922) ~[?:?]
at net.minecraft.server.level.ServerPlayer.hurt(ServerPlayer.java:1027) ~[?:?]
at net.minecraft.world.entity.projectile.AbstractArrow.onHitEntity(AbstractArrow.java:398) ~[?:?]
at net.minecraft.world.entity.projectile.Projectile.onHit(Projectile.java:211) ~[?:?]
at net.minecraft.world.entity.projectile.Projectile.preOnHit(Projectile.java:202) ~[?:?]
at net.minecraft.world.entity.projectile.AbstractArrow.tick(AbstractArrow.java:241) ~[?:?]
at net.minecraft.world.entity.projectile.Arrow.tick(Arrow.java:112) ~[?:?]
at net.minecraft.server.level.ServerLevel.tickNonPassenger(ServerLevel.java:1146) ~[?:?]
at net.minecraft.server.level.ServerLevel.lambda$tick$5(ServerLevel.java:672) ~[?:?]
at net.minecraft.world.level.entity.EntityTickList.forEach(EntityTickList.java:43) ~[pufferfish-1.18.1.jar:git-Pufferfish-42]
at net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:650) ~[?:?]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1613) ~[pufferfish-1.18.1.jar:git-Pufferfish-42]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:483) ~[pufferfish-1.18.1.jar:git-Pufferfish-42]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1476) ~[pufferfish-1.18.1.jar:git-Pufferfish-42]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1266) ~[pufferfish-1.18.1.jar:git-Pufferfish-42]
at net.minecraft.server.MinecraftServer.lambda$spin$1(MinecraftServer.java:319) ~[pufferfish-1.18.1.jar:git-Pufferfish-42]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
Player Death Bug Console error occurs upon a player death caused by another player / entitiy
To Reproduce Steps to reproduce the behavior:
Expected behavior Not logging the Player Death Checker
Given Error [13:06:28 ERROR]: Could not pass event PlayerDeathEvent to Logger v1.7.1 java.lang.NullPointerException: null at java.util.Objects.requireNonNull(Objects.java:208) ~[?:?] at com.carpour.logger.Events.OnPlayerDeath.onDeath(OnPlayerDeath.java:54) ~[Logger-1.7.1.jar:?] at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor265.execute(Unknown Source) ~[?:?] at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:75) ~[pufferfish-api-1.18.1-R0.1-SNAPSHOT.jar:?] at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:76) ~[pufferfish-api-1.18.1-R0.1-SNAPSHOT.jar:git-Pufferfish-42] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[pufferfish-api-1.18.1-R0.1-SNAPSHOT.jar:?] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:630) ~[pufferfish-api-1.18.1-R0.1-SNAPSHOT.jar:?] at org.bukkit.craftbukkit.v1_18_R1.event.CraftEventFactory.callPlayerDeathEvent(CraftEventFactory.java:896) ~[pufferfish-1.18.1.jar:git-Pufferfish-42] at net.minecraft.server.level.ServerPlayer.die(ServerPlayer.java:862) ~[?:?] at net.minecraft.world.entity.LivingEntity.hurt(LivingEntity.java:1456) ~[?:?] at net.minecraft.world.entity.player.Player.hurt(Player.java:922) ~[?:?] at net.minecraft.server.level.ServerPlayer.hurt(ServerPlayer.java:1027) ~[?:?] at net.minecraft.world.entity.projectile.AbstractArrow.onHitEntity(AbstractArrow.java:398) ~[?:?] at net.minecraft.world.entity.projectile.Projectile.onHit(Projectile.java:211) ~[?:?] at net.minecraft.world.entity.projectile.Projectile.preOnHit(Projectile.java:202) ~[?:?] at net.minecraft.world.entity.projectile.AbstractArrow.tick(AbstractArrow.java:241) ~[?:?] at net.minecraft.world.entity.projectile.Arrow.tick(Arrow.java:112) ~[?:?] at net.minecraft.server.level.ServerLevel.tickNonPassenger(ServerLevel.java:1146) ~[?:?] at net.minecraft.server.level.ServerLevel.lambda$tick$5(ServerLevel.java:672) ~[?:?] at net.minecraft.world.level.entity.EntityTickList.forEach(EntityTickList.java:43) ~[pufferfish-1.18.1.jar:git-Pufferfish-42] at net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:650) ~[?:?] at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1613) ~[pufferfish-1.18.1.jar:git-Pufferfish-42] at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:483) ~[pufferfish-1.18.1.jar:git-Pufferfish-42] at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1476) ~[pufferfish-1.18.1.jar:git-Pufferfish-42] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1266) ~[pufferfish-1.18.1.jar:git-Pufferfish-42] at net.minecraft.server.MinecraftServer.lambda$spin$1(MinecraftServer.java:319) ~[pufferfish-1.18.1.jar:git-Pufferfish-42] at java.lang.Thread.run(Thread.java:833) ~[?:?]
Server & Version