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

two bags #22

Open
Vupsennc opened this issue Nov 14, 2022 · 0 comments
Open

two bags #22

Vupsennc opened this issue Nov 14, 2022 · 0 comments

Comments

@Vupsennc
Copy link

Vupsennc commented Nov 14, 2022

Bug Report 🐛

Plugin Version

1.5.6

Server Version

1.19.2 Pufferfish

StackTrace

[13:44:28 ERROR]: Could not pass event BlockBreakEvent to HeadDrops v1.5.6

java.lang.NullPointerException: Cannot invoke "java.util.List.stream()" because "lore" is null
at com.github.evancolewright.headdrops.utilities.HeadUtils.createPlayerHead(HeadUtils.java:25) ~[HeadDrops-1.5.6.jar:?]
at com.github.evancolewright.headdrops.model.PlayerHeadData.toItemStack(PlayerHeadData.java:44) ~[HeadDrops-1.5.6.jar:?]
at com.github.evancolewright.headdrops.HeadDropsListeners.onHeadBreak(HeadDropsListeners.java:76) ~[HeadDrops-1.5.6.jar:?]
at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor37.execute(Unknown Source) ~[?:?]
at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:75) ~[pufferfish-api-1.19.2-R0.1-SNAPSHOT.jar:?]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[pufferfish-api-1.19.2-R0.1-SNAPSHOT.jar:git-Pufferfish-42]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[pufferfish-api-1.19.2-R0.1-SNAPSHOT.jar:?]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:672) ~[pufferfish-api-1.19.2-R0.1-SNAPSHOT.jar:?]
at net.minecraft.server.level.ServerPlayerGameMode.destroyBlock(ServerPlayerGameMode.java:369) ~[?:?]
at net.minecraft.server.level.ServerPlayerGameMode.destroyAndAck(ServerPlayerGameMode.java:328) ~[?:?]
at net.minecraft.server.level.ServerPlayerGameMode.handleBlockBreakAction(ServerPlayerGameMode.java:266) ~[?:?]
at net.minecraft.server.network.ServerGamePacketListenerImpl.handlePlayerAction(ServerGamePacketListenerImpl.java:1884) ~[?:?]
at net.minecraft.network.protocol.game.ServerboundPlayerActionPacket.handle(ServerboundPlayerActionPacket.java:42) ~[?:?]
at net.minecraft.network.protocol.game.ServerboundPlayerActionPacket.a(ServerboundPlayerActionPacket.java:15) ~[?:?]
at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$1(PacketUtils.java:51) ~[?:?]
at net.minecraft.server.TickTask.run(TickTask.java:18) ~[pufferfish-1.19.2.jar:git-Pufferfish-42]
at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:153) ~[?:?]
at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[?:?]
at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1343) ~[pufferfish-1.19.2.jar:git-Pufferfish-42]
at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:185) ~[pufferfish-1.19.2.jar:git-Pufferfish-42]
at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:126) ~[?:?]
at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1320) ~[pufferfish-1.19.2.jar:git-Pufferfish-42]
at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1313) ~[pufferfish-1.19.2.jar:git-Pufferfish-42]
at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:136) ~[?:?]
at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1291) ~[pufferfish-1.19.2.jar:git-Pufferfish-42]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1179) ~[pufferfish-1.19.2.jar:git-Pufferfish-42]
at net.minecraft.server.MinecraftServer.lambda$spin$1(MinecraftServer.java:307) ~[pufferfish-1.19.2.jar:git-Pufferfish-42]
at java.lang.Thread.run(Thread.java:833) ~[?:?]

Steps to Reproduce

Hello, I have two problems with your plugin.

First, make it possible to turn off the head lore, yes you can put an empty space, but then the line and will be empty, and if you leave [] will constantly write to the console about the error.

Second, if the player's head somewhere, then break, and then put there any block, then after he broke it does not fall out, in the logs coreprotect does not even log that it is broken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant