noahbclarkson/Auto-Tune

[BUG]

Closed this issue · 0 comments

Describe the bug
A clear and concise description of what the bug is.

Steps To Reproduce
Steps to reproduce the behavior:

Expected behavior
A clear and concise description of what you expected to happen.

Minecraft Server Version
1.19 etc.

Auto-Tune-Version
0.14.0 etc.

Additional context
Add any other context about the problem here (logs, plugins, etc.)
[23:01:40] [Server thread/ERROR]: [Auto-Tune] Exception while handling click event in inventory 'Shop', slot=28, item=ENCHANTED_BOOK
java.lang.IllegalArgumentException: Specified enchantment cannot be applied to this itemstack
at org.bukkit.inventory.ItemStack.addEnchantment(ItemStack.java:401) ~[paper-api-1.19-R0.1-SNAPSHOT.jar:?]
at unprotesting.com.github.data.PurchaseUtil.enchant(PurchaseUtil.java:269) ~[Auto-Tune-0.14.0-pre-release.jar:?]
at unprotesting.com.github.data.PurchaseUtil.purchaseItem(PurchaseUtil.java:65) ~[Auto-Tune-0.14.0-pre-release.jar:?]
at unprotesting.com.github.commands.ShopCommand.lambda$getPurchasePane$1(ShopCommand.java:105) ~[Auto-Tune-0.14.0-pre-release.jar:?]
at unprotesting.com.github.inventoryframework.gui.GuiItem.callAction(GuiItem.java:129) ~[Auto-Tune-0.14.0-pre-release.jar:?]
at unprotesting.com.github.inventoryframework.pane.OutlinePane.click(OutlinePane.java:247) ~[Auto-Tune-0.14.0-pre-release.jar:?]
at unprotesting.com.github.inventoryframework.gui.InventoryComponent.click(InventoryComponent.java:203) ~[Auto-Tune-0.14.0-pre-release.jar:?]
at unprotesting.com.github.inventoryframework.gui.type.ChestGui.click(ChestGui.java:128) ~[Auto-Tune-0.14.0-pre-release.jar:?]
at unprotesting.com.github.inventoryframework.gui.GuiListener.onInventoryClick(GuiListener.java:66) ~[Auto-Tune-0.14.0-pre-release.jar:?]
at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor1255.execute(Unknown Source) ~[?:?]
at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:75) ~[paper-api-1.19-R0.1-SNAPSHOT.jar:?]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[paper-api-1.19-R0.1-SNAPSHOT.jar:git-Paper-52]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-api-1.19-R0.1-SNAPSHOT.jar:?]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:664) ~[paper-api-1.19-R0.1-SNAPSHOT.jar:?]
at net.minecraft.server.network.ServerGamePacketListenerImpl.handleContainerClick(ServerGamePacketListenerImpl.java:3047) ~[?:?]
at net.minecraft.network.protocol.game.ServerboundContainerClickPacket.handle(ServerboundContainerClickPacket.java:58) ~[?:?]
at net.minecraft.network.protocol.game.ServerboundContainerClickPacket.handle(ServerboundContainerClickPacket.java:23) ~[?:?]
at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$1(PacketUtils.java:51) ~[?:?]
at net.minecraft.server.TickTask.run(TickTask.java:18) ~[paper-1.19.jar:git-Paper-52]
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:1358) ~[paper-1.19.jar:git-Paper-52]
at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:183) ~[paper-1.19.jar:git-Paper-52]
at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:126) ~[?:?]
at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1335) ~[paper-1.19.jar:git-Paper-52]
at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1328) ~[paper-1.19.jar:git-Paper-52]
at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:136) ~[?:?]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1406) ~[paper-1.19.jar:git-Paper-52]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1187) ~[paper-1.19.jar:git-Paper-52]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:302) ~[paper-1.19.jar:git-Paper-52]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
[23:01:40] [Server thread/ERROR]: [Auto-Tune] Exception while handling click event in inventory 'Shop', slot=28, item=ENCHANTED_BOOK
java.lang.IllegalArgumentException: Specified enchantment cannot be applied to this itemstack
at org.bukkit.inventory.ItemStack.addEnchantment(ItemStack.java:401) ~[paper-api-1.19-R0.1-SNAPSHOT.jar:?]
at unprotesting.com.github.data.PurchaseUtil.enchant(PurchaseUtil.java:269) ~[Auto-Tune-0.14.0-pre-release.jar:?]
at unprotesting.com.github.data.PurchaseUtil.purchaseItem(PurchaseUtil.java:65) ~[Auto-Tune-0.14.0-pre-release.jar:?]
at unprotesting.com.github.commands.ShopCommand.lambda$getPurchasePane$1(ShopCommand.java:105) ~[Auto-Tune-0.14.0-pre-release.jar:?]
at unprotesting.com.github.inventoryframework.gui.GuiItem.callAction(GuiItem.java:129) ~[Auto-Tune-0.14.0-pre-release.jar:?]
at unprotesting.com.github.inventoryframework.pane.OutlinePane.click(OutlinePane.java:247) ~[Auto-Tune-0.14.0-pre-release.jar:?]
at unprotesting.com.github.inventoryframework.gui.InventoryComponent.click(InventoryComponent.java:203) ~[Auto-Tune-0.14.0-pre-release.jar:?]
at unprotesting.com.github.inventoryframework.gui.type.ChestGui.click(ChestGui.java:128) ~[Auto-Tune-0.14.0-pre-release.jar:?]
at unprotesting.com.github.inventoryframework.gui.GuiListener.onInventoryClick(GuiListener.java:66) ~[Auto-Tune-0.14.0-pre-release.jar:?]
at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor1255.execute(Unknown Source) ~[?:?]
at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:75) ~[paper-api-1.19-R0.1-SNAPSHOT.jar:?]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[paper-api-1.19-R0.1-SNAPSHOT.jar:git-Paper-52]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-api-1.19-R0.1-SNAPSHOT.jar:?]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:664) ~[paper-api-1.19-R0.1-SNAPSHOT.jar:?]
at net.minecraft.server.network.ServerGamePacketListenerImpl.handleContainerClick(ServerGamePacketListenerImpl.java:3047) ~[?:?]
at net.minecraft.network.protocol.game.ServerboundContainerClickPacket.handle(ServerboundContainerClickPacket.java:58) ~[?:?]
at net.minecraft.network.protocol.game.ServerboundContainerClickPacket.handle(ServerboundContainerClickPacket.java:23) ~[?:?]
at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$1(PacketUtils.java:51) ~[?:?]
at net.minecraft.server.TickTask.run(TickTask.java:18) ~[paper-1.19.jar:git-Paper-52]
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:1358) ~[paper-1.19.jar:git-Paper-52]
at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:183) ~[paper-1.19.jar:git-Paper-52]
at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:126) ~[?:?]
at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1335) ~[paper-1.19.jar:git-Paper-52]
at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1328) ~[paper-1.19.jar:git-Paper-52]
at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:136) ~[?:?]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1406) ~[paper-1.19.jar:git-Paper-52]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1187) ~[paper-1.19.jar:git-Paper-52]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:302) ~[paper-1.19.jar:git-Paper-52]
at java.lang.Thread.run(Thread.java:833) ~[?:?]