Bug Closed · Could not replicate

[Bug] Party Leader - LegacyJacob

#3153 opened by Unknown 4 years ago

Unknownreported this bug

Hey there! If you are AFK in a dungeon for so long, you'll get a text message saying "playername was kicked for being offline for too long!" This then breaks the plugin with the following error in console once you try to play another dungeon instance. [04:25:22 ERROR]: null org.bukkit.command.CommandException: Unhandled exception executing command 'md' in plugin MythicDungeons v1.0.0 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[paper-api-1.18.2-R0.1-SNAPSHOT.jar:?] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:159) ~[paper-api-1.18.2-R0.1-SNAPSHOT.jar:?] at org.bukkit.craftbukkit.v1_18_R2.CraftServer.dispatchCommand(CraftServer.java:906) ~[paper-1.18.2.jar:git-Paper-378] at net.minecraft.server.network.ServerGamePacketListenerImpl.handleCommand(ServerGamePacketListenerImpl.java:2307) ~[?:?] at net.minecraft.server.network.ServerGamePacketListenerImpl.handleChat(ServerGamePacketListenerImpl.java:2118) ~[?:?] at net.minecraft.server.network.ServerGamePacketListenerImpl.handleChat(ServerGamePacketListenerImpl.java:2099) ~[?:?] at net.minecraft.network.protocol.game.ServerboundChatPacket.handle(ServerboundChatPacket.java:46) ~[?:?] at net.minecraft.network.protocol.game.ServerboundChatPacket.a(ServerboundChatPacket.java:6) ~[?:?] at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$1(PacketUtils.java:51) ~[?:?] at net.minecraft.server.TickTask.run(TickTask.java:18) ~[paper-1.18.2.jar:git-Paper-378] 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:1400) ~[paper-1.18.2.jar:git-Paper-378] at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:188) ~[paper-1.18.2.jar:git-Paper-378] at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:126) ~[?:?] at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1377) ~[paper-1.18.2.jar:git-Paper-378] at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1370) ~[paper-1.18.2.jar:git-Paper-378] at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:136) ~[?:?] at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1348) ~[paper-1.18.2.jar:git-Paper-378] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1230) ~[paper-1.18.2.jar:git-Paper-378] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:316) ~[paper-1.18.2.jar:git-Paper-378] at java.lang.Thread.run(Thread.java:833) ~[?:?] Caused by: java.lang.NullPointerException: Cannot invoke "net.playavalon.mythicdungeons.player.party.DungeonParty.getLeader()" because the return value of "net.playavalon.mythicdungeons.player.MythicPlayer.getParty()" is null at net.playavalon.mythicdungeons.MythicDungeons.onCommand(MythicDungeons.java:597) ~[MythicDungeons-1.0.0.jar:?] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[paper-api-1.18.2-R0.1-SNAPSHOT.jar:?] ... 21 more

Unknowncommented

After doing some testing, I've encountered the bug, but can't seem to reliably reproduce it... sometimes it happens quickly, sometimes it happens much later. Do you have any steps to reproduce the bug?

I have a couple theories as to what might be going on and patched something I missed before when handling players disconnecting, but I can't make sense of why it's running offline player kick when nobody is going offline at all... Either way, the party plugin has been updated and will take after you next restart your server. Who knows, maybe what I fixed today will solve it.

Unknowncommented

Ok thank you for taking a look at it. I will download it and test it today to see. I usually just wait and it happens. Like you said, it's either fast, or take a little bit. It's very weird.

Unknowncommented

Hey Legacy, have you been able to repeat this, or has all been working smoothly? :O

Unknowncommented

I haven't had any problems with it recently. Feel free to close this. I'll just open another one if it happens again. Thank you!

Sign in to join the discussion.