Closed StKillReal closed 5 days ago
Same problem
@StKillReal @Fanolcie Can I get your /version
output, please? I wasn't able to replicate this; the quest starts at 0/36 and increments to 1/36, 2/36, and so on using build 484.
@PikaMug
Quests 5.0.5
Got tons of errors.
- [Sun 13:47:48 ERROR Minecraft] Could not pass event BlockPlaceEvent to Quests v5.0.5-b480 java.lang.IllegalArgumentException: GRAY_WALL_BANNER isn't an item at com.google.common.base.Preconditions.checkArgument(Preconditions.java:143) at org.bukkit.inventory.ItemStack.of(ItemStack.java:58) at org.bukkit.inventory.ItemStack.<init>(ItemStack.java:138) at org.bukkit.inventory.ItemStack.<init>(ItemStack.java:117) at Quests-5.0.5.jar//me.pikamug.quests.listeners.BukkitBlockListener.onBlockPlace(BukkitBlockListener.java:224) at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor356.execute(Unknown Source) at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:81) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:131) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:628) at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(CraftEventFactory.java:449) at net.minecraft.world.item.ItemStack.useOn(ItemStack.java:487) at net.minecraft.server.level.ServerPlayerGameMode.useItemOn(ServerPlayerGameMode.java:604) at net.minecraft.server.network.ServerGamePacketListenerImpl.handleUseItemOn(ServerGamePacketListenerImpl.java:1871) at net.minecraft.network.protocol.game.ServerboundUseItemOnPacket.handle(ServerboundUseItemOnPacket.java:44) at net.minecraft.network.protocol.game.ServerboundUseItemOnPacket.handle(ServerboundUseItemOnPacket.java:11) at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:36) at net.minecraft.server.TickTask.run(TickTask.java:18) at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:151)
- [Sun 14:11:37 ERROR Minecraft] Could not pass event BlockPlaceEvent to Quests v5.0.5-b480 java.lang.IllegalArgumentException: SPRUCE_WALL_SIGN isn't an item at com.google.common.base.Preconditions.checkArgument(Preconditions.java:143) at org.bukkit.inventory.ItemStack.of(ItemStack.java:58) at org.bukkit.inventory.ItemStack.<init>(ItemStack.java:138) at org.bukkit.inventory.ItemStack.<init>(ItemStack.java:117) at Quests-5.0.5.jar//me.pikamug.quests.listeners.BukkitBlockListener.onBlockPlace(BukkitBlockListener.java:224) at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor356.execute(Unknown Source) at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:81) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:131) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:628) at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(CraftEventFactory.java:449) at net.minecraft.world.item.ItemStack.useOn(ItemStack.java:487) at net.minecraft.server.level.ServerPlayerGameMode.useItemOn(ServerPlayerGameMode.java:604) at net.minecraft.server.network.ServerGamePacketListenerImpl.handleUseItemOn(ServerGamePacketListenerImpl.java:1871) at net.minecraft.network.protocol.game.ServerboundUseItemOnPacket.handle(ServerboundUseItemOnPacket.java:44) at net.minecraft.network.protocol.game.ServerboundUseItemOnPacket.handle(ServerboundUseItemOnPacket.java:11) at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:36) at net.minecraft.server.TickTask.run(TickTask.java:18) at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:151)
@StKillReal @Fanolcie Thanks for that information. It looks like there's going to be more work involved for these new Paper(+forks) builds. What I've done is attempt a workaround for break objectives. I'd appreciate your feedback after trying it: https://ci.codemc.io/job/PikaMug/job/Quests/485/
Note that other block/item objectives are not yet fixed. I'll get to those after I hear back from you.
It seems to be working now. I will test and report any errors. I appreciate for your work!
I've applied the fix to all block and item objectives (including NPC delivery). This build has not been tested! Should you encounter any problems, please open a new issue. https://ci.codemc.io/job/PikaMug/job/Quests/486/
What is your Quests version / build number (do not say "latest")?
Describe the problem and how to replicate it.
I have a quest in which I should break 36 blocks, but when I break it, it still shows 1/36
![2024-07-05_20 25 41](https://github.com/PikaMug/Quests/assets/60330193/8910988d-2ee0-497b-8c35-59d74bab93da)
Any console errors to share?
If applicable, can you provide an example quest from quests.yml?