PluginBugs / Issues-ItemsAdder

Repository used to keep track of issues of my plugin ItemsAdder
https://itemsadder.devs.beer
55 stars 21 forks source link

Cannot cast ia.m.eH to org.bukkit.craftbukkit.inventory.CraftItemStack #3846

Closed PrOsToNiK13 closed 3 months ago

PrOsToNiK13 commented 3 months ago

Terms

Discord tag (optional)

No response

What happened?

I'm creating an ItemStack according to your documentation, but when I add it to the player's inventory, I get an error.

[18:56:17 ERROR]: Could not pass event PlayerInteractEvent to PNLoader v1.0-SNAPSHOT java.lang.ClassCastException: Cannot cast ia.m.eH to org.bukkit.craftbukkit.inventory.CraftItemStack at java.base/java.lang.Class.cast(Class.java:4067) ~[?:?] at org.bukkit.craftbukkit.inventory.CraftItemStack.getCraftStack(CraftItemStack.java:46) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at org.bukkit.craftbukkit.inventory.CraftItemStack.asNMSCopy(CraftItemStack.java:97) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at org.bukkit.craftbukkit.inventory.CraftInventory.setItem(CraftInventory.java:100) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at org.bukkit.craftbukkit.inventory.CraftInventoryPlayer.setItem(CraftInventoryPlayer.java:73) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at PNLoader.jar/olympmc.pnloader.utils.InventoryUtil.addItem(InventoryUtil.java:56) ~[PNLoader.jar:?] at PNLoader.jar/olympmc.pnloader.Job.addItem(Job.java:147) ~[PNLoader.jar:?] at PNLoader.jar/olympmc.pnloader.PlayerListener.onInteract(PlayerListener.java:47) ~[PNLoader.jar:?] at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor384.execute(Unknown Source) ~[?:?] at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[paper-mojangapi-1.21-R0.1-SNAPSHOT.jar:?] at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[paper-mojangapi-1.21-R0.1-SNAPSHOT.jar:1.21-2276-72ccfbd] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-mojangapi-1.21-R0.1-SNAPSHOT.jar:?] at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:131) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:628) ~[paper-mojangapi-1.21-R0.1-SNAPSHOT.jar:?] at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:598) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.server.level.ServerPlayerGameMode.useItemOn(ServerPlayerGameMode.java:538) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.server.network.ServerGamePacketListenerImpl.handleUseItemOn(ServerGamePacketListenerImpl.java:1949) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.network.protocol.game.ServerboundUseItemOnPacket.handle(ServerboundUseItemOnPacket.java:44) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.network.protocol.game.ServerboundUseItemOnPacket.handle(ServerboundUseItemOnPacket.java:11) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:56) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.server.TickTask.run(TickTask.java:18) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:151) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1572) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:201) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:125) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1549) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1542) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:135) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.server.MinecraftServer.managedBlock(MinecraftServer.java:1501) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1508) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1353) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:333) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]

Thats my code to add items.

CustomStack stack = CustomStack.getInstance(IAItem); itemStack = stack.getItemStack(); InventoryUtil.addItem(player, itemStack);

And the function of adding an item itself:

public static void addItem(Player player, ItemStack item){ releaseSlot(player); player.getInventory().setItem(getEmptySlot(player), item); <----- }

The error occurs in the line highlighted by the arrow. What’s interesting is that the problem does not occur on the local server, but the Spigot kernel is installed there. The VDS is running Purpur, maybe that's the problem?

Steps to reproduce the issue

  1. Start the server
  2. Click on the block
  3. When processing a click on this block, I want to give the player a certain item (using PlayerInteractEvent)
  4. I get an error in the code, the item is not issued

Server version

Current Purpur Version: 1.21-2276-72ccfbd (MC: 1.21)*

ItemsAdder Version

[19:05:13 INFO]: ItemsAdder version 4.0.2-alpha-test-3

ProtocolLib Version

[19:05:35 INFO]: ProtocolLib version 5.3.0-SNAPSHOT-726

LoneLibs Version

[19:05:49 INFO]: LoneLibs version 1.0.56

Full server log

[18:55:19] [ServerMain/INFO]: [bootstrap] Running Java 21 (Java HotSpot(TM) 64-Bit Server VM 21.0.3+7-LTS-152; Oracle Corporation null) on Linux 6.1.0-22-amd64 (amd64) [18:55:19] [ServerMain/INFO]: [bootstrap] Loading Purpur 1.21-2276-ver/1.21@72ccfbd (2024-07-28T08:22:53Z) for Minecraft 1.21 [18:55:19] [ServerMain/INFO]: [PluginInitializerManager] Initializing plugins... [18:55:19] [Paper Plugin Remapper Thread - 2/INFO]: [PluginRemapper] Remapping plugin 'plugins/PNLoader.jar'... [18:55:19] [Paper Plugin Remapper Thread - 2/INFO]: [PluginRemapper] Done remapping plugin 'plugins/PNLoader.jar' in 194ms. [18:55:20] [ServerMain/INFO]: [PluginInitializerManager] Initialized 30 plugins [18:55:20] [ServerMain/INFO]: [PluginInitializerManager] Bukkit plugins (30):

[18:55:43] [Server thread/WARN]: [ItemsAdder] This is a test version of ItemsAdder v4 for Minecraft 1.20.6 and 1.21. [18:55:43] [Server thread/WARN]: [ItemsAdder] Please make backups before using this version. [18:55:43] [Server thread/WARN]: [ItemsAdder] Use this only on a test server. [18:55:43] [Server thread/WARN]: [ItemsAdder] I am not responsible for any damage done to your server.

[18:55:43] [Server thread/INFO]: [ItemsAdder] Registered Citizens NPC Trait: customentity [18:55:43] [Server thread/INFO]: [ItemsAdder] [Host] Starting self-host webserver on port: 8163 [18:55:44] [Server thread/INFO]: [ItemsAdder] [Pack] Extracting internal contents from .jar [18:55:44] [Server thread/INFO]: [ItemsAdder] [Pack] Done extracting internal contents from .jar [18:55:44] [Server thread/WARN]: [ItemsAdder] Detected legacy ItemsAdder pack (pre 3.3.0). [18:55:44] [Server thread/WARN]: [ItemsAdder] Trying to load files, unexpected results might occur. [18:55:44] [Server thread/WARN]: [ItemsAdder] It's adviced to follow the new guidelines: https://a.devs.beer/ia-new-guidelines-330 [18:55:44] [Server thread/WARN]: [ItemsAdder] Failed to add font glypth entry. Vanilla resource 'assets/minecraft/textures/item/scute.png' doesn't exists. File: /contents/mcemojis/configs/emoji_images.yml [18:55:46] [Server thread/INFO]: [Multiverse-Core] Enabling Multiverse-Core v4.3.12 [18:55:46] [Server thread/WARN]: [Multiverse-Core] "Multiverse-Core v4.3.12" has registered a listener for org.bukkit.event.entity.EntityCreatePortalEvent on method "public void com.onarandombox.MultiverseCore.listeners.MVPortalListener.entityPortalCreate(org.bukkit.event.entity.EntityCreatePortalEvent)", but the event is Deprecated. "Server performance will be affected"; please notify the authors [dumptruckman, Rigby, fernferret, lithium3141, main--]. [18:55:46] [Server thread/INFO]: [Multiverse-Core] §aWe are aware of the warning about the deprecated event. There is no alternative that allows us to do what we need to do and performance impact is negligible. It is safe to ignore. [18:55:47] [Server thread/INFO]: Preparing start region for dimension minecraft:spawn [18:55:47] [Server thread/INFO]: Time elapsed: 92 ms [18:55:47] [Server thread/INFO]: [WorldGuard] (spawn) TNT ignition is PERMITTED. [18:55:47] [Server thread/INFO]: [WorldGuard] (spawn) Lighters are PERMITTED. [18:55:47] [Server thread/INFO]: [WorldGuard] (spawn) Lava fire is blocked. [18:55:47] [Server thread/INFO]: [WorldGuard] (spawn) All fire spread is disabled. [18:55:47] [Server thread/INFO]: [WorldGuard] Loaded configuration for world 'spawn' [18:55:47] [Server thread/INFO]: [Multiverse-Core] 4 - World(s) loaded. [18:55:47] [Server thread/INFO]: [Multiverse-Core] Version 4.3.12 (API v24) Enabled - By dumptruckman, Rigby, fernferret, lithium3141 and main-- [18:55:47] [Server thread/INFO]: [WESV] Enabling WorldEditSelectionVisualizer v2.1.6 [18:55:47] [Server thread/INFO]: [WESV] Using WorldEdit 7 api [18:55:47] [Server thread/INFO]: [PlaceholderAPI] Successfully registered internal expansion: wesv [2.1.6] [18:55:47] [Server thread/INFO]: [WESV] PlaceholderAPI extension successfully registered. [18:55:47] [Server thread/INFO]: [DecentHolograms] Enabling DecentHolograms v2.8.9 [18:55:47] [Server thread/INFO]: [ViaBackwards] Enabling ViaBackwards v5.0.2-SNAPSHOT [18:55:47] [Server thread/INFO]: [PNAutoMessenger] Enabling PNAutoMessenger v1.0 [18:55:47] [Server thread/INFO]: [WorldGuardExtraFlags] Enabling WorldGuardExtraFlags v4.2.4-SNAPSHOT [18:55:47] [Server thread/INFO]: [WorldGuard] Registering session handler net.goldtreeservers.worldguardextraflags.wg.handlers.TeleportOnEntryFlagHandler [18:55:47] [Server thread/INFO]: [WorldGuard] Registering session handler net.goldtreeservers.worldguardextraflags.wg.handlers.TeleportOnExitFlagHandler [18:55:47] [Server thread/INFO]: [WorldGuard] Registering session handler net.goldtreeservers.worldguardextraflags.wg.handlers.WalkSpeedFlagHandler [18:55:47] [Server thread/INFO]: [WorldGuard] Registering session handler net.goldtreeservers.worldguardextraflags.wg.handlers.FlySpeedFlagHandler [18:55:47] [Server thread/INFO]: [WorldGuard] Registering session handler net.goldtreeservers.worldguardextraflags.wg.handlers.FlyFlagHandler [18:55:47] [Server thread/INFO]: [WorldGuard] Registering session handler net.goldtreeservers.worldguardextraflags.wg.handlers.GlideFlagHandler [18:55:47] [Server thread/INFO]: [WorldGuard] Registering session handler net.goldtreeservers.worldguardextraflags.wg.handlers.GodmodeFlagHandler [18:55:47] [Server thread/INFO]: [WorldGuard] Registering session handler net.goldtreeservers.worldguardextraflags.wg.handlers.PlaySoundsFlagHandler [18:55:47] [Server thread/INFO]: [WorldGuard] Registering session handler net.goldtreeservers.worldguardextraflags.wg.handlers.BlockedEffectsFlagHandler [18:55:47] [Server thread/INFO]: [WorldGuard] Registering session handler net.goldtreeservers.worldguardextraflags.wg.handlers.GiveEffectsFlagHandler [18:55:47] [Server thread/INFO]: [WorldGuard] Registering session handler net.goldtreeservers.worldguardextraflags.wg.handlers.CommandOnEntryFlagHandler [18:55:47] [Server thread/INFO]: [WorldGuard] Registering session handler net.goldtreeservers.worldguardextraflags.wg.handlers.CommandOnExitFlagHandler [18:55:47] [Server thread/INFO]: [WorldGuard] Registering session handler net.goldtreeservers.worldguardextraflags.wg.handlers.ConsoleCommandOnEntryFlagHandler [18:55:47] [Server thread/INFO]: [WorldGuard] Registering session handler net.goldtreeservers.worldguardextraflags.wg.handlers.ConsoleCommandOnExitFlagHandler [18:55:47] [Server thread/INFO]: [Sentinel] Enabling Sentinel v2.9.1-SNAPSHOT (build 523) [18:55:47] [Server thread/INFO]: [Sentinel] Sentinel loading... [18:55:47] [Server thread/INFO]: [Sentinel] Running on java version: 21.0.3 [18:55:47] [Server thread/INFO]: [Sentinel] Sentinel loaded on a fully supported Minecraft version. If you encounter any issues or need to ask a question, please join our Discord at https://discord.gg/Q6pZGSR and post in the '#sentinel' channel. [18:55:47] [Server thread/INFO]: [Sentinel] Vault linked! Group targets will work. [18:55:47] [Server thread/INFO]: [Sentinel] Sentinel found WorldGuard! Adding support for it! [18:55:47] [Server thread/INFO]: [Sentinel] Sentinel loaded! [18:55:47] [Server thread/INFO]: [EssentialsProtect] Enabling EssentialsProtect v2.21.0-dev+102-fcf6e64 [18:55:47] [Server thread/INFO]: [EssentialsProtect] Continuing to enable Protect. [18:55:47] [Server thread/INFO]: [EssentialsProtect] Starting Metrics. Opt-out using the global bStats config. [18:55:47] [Server thread/INFO]: [PNLoader] Enabling PNLoader v1.0-SNAPSHOT [18:55:47] [Server thread/INFO]: [EssentialsSpawn] Enabling EssentialsSpawn v2.21.0-dev+102-fcf6e64 [18:55:48] [Server thread/INFO]: [EssentialsSpawn] Starting Metrics. Opt-out using the global bStats config. [18:55:48] [Server thread/INFO]: [HideStream] Enabling HideStream v3.10 [18:55:48] [Server thread/INFO]: [HideStream] Version 3.10 enabled. (Metrics: true. CheckForUpdates: false) [18:55:48] [Server thread/INFO]: [WGExtender] Enabling WGExtender v3.1.1-fork [18:55:48] [Server thread/INFO]: [floodgate] Enabling floodgate v2.2.3-SNAPSHOT (b109-49bd564) [18:55:48] [Server thread/INFO]: [AreaShop] Enabling AreaShop v2.9.1 [18:55:48] [Server thread/INFO]: [AreaShop] Detected Paper; using the PaperPlatform impl [18:55:48] [Server thread/INFO]: [AreaShop] Detected FastAsyncWorldEdit, using the fawe handler [18:55:49] [Server thread/INFO]: [AreaShop] EssentialsX detected; registering optional features [18:55:49] [Server thread/INFO]: [AreaShop] EssentialsX detected; binding implementation for home access [18:55:50] [Server thread/INFO]: [O'DailyQuests] Enabling ODailyQuests v2.3.0-SNAPSHOT-10 [18:55:50] [Server thread/INFO]: [O'DailyQuests] Plugin is starting... [18:55:50] [Server thread/INFO]: [O'DailyQuests] Checking for update... [18:55:50] [Server thread/INFO]: [com.zaxxer.hikari.HikariDataSource] HikariPool-1 - Starting... [18:55:50] [Server thread/INFO]: [com.zaxxer.hikari.pool.HikariPool] HikariPool-1 - Added connection conn0: url=jdbc:h2:./plugins/ODailyQuests/database user=ODQ [18:55:50] [Server thread/INFO]: [com.zaxxer.hikari.HikariDataSource] HikariPool-1 - Start completed. [18:55:50] [Server thread/INFO]: [O'DailyQuests] Plugin successfully connected to database DATABASE. [18:55:50] [Server thread/INFO]: [O'DailyQuests] Vault successfully hooked. [18:55:50] [Server thread/INFO]: [O'DailyQuests] Citizens successfully hooked. [18:55:50] [Server thread/INFO]: [PlaceholderAPI] Successfully registered internal expansion: odailyquests [1.0.4] [18:55:50] [Server thread/INFO]: [O'DailyQuests] PlaceholderAPI successfully hooked. [18:55:51] [Server thread/INFO]: [O'DailyQuests] WorldGuard detected, hook enabled. [18:55:51] [Server thread/ERROR]: [O'DailyQuests] ----------------------------------- [18:55:51] [Server thread/ERROR]: [O'DailyQuests] Invalid quest configuration detected. [18:55:51] [Server thread/ERROR]: [O'DailyQuests] File : globalQuests [18:55:51] [Server thread/ERROR]: [O'DailyQuests] Quest number : 9 [18:55:51] [Server thread/ERROR]: [O'DailyQuests] Reason : CUSTOM_MOBS is not a valid quest type. [18:55:51] [Server thread/ERROR]: [O'DailyQuests] Parameter : quest_type [18:55:51] [Server thread/ERROR]: [O'DailyQuests] ----------------------------------- [18:55:51] [Server thread/INFO]: [O'DailyQuests] 23 quests loaded from globalQuests file. [18:55:51] [Server thread/INFO]: Environment: Environment[sessionHost=https://sessionserver.mojang.com, servicesHost=https://api.minecraftservices.com, name=PROD] [18:55:51] [Server thread/INFO]: [O'DailyQuests] Plugin is started! [18:55:51] [Server thread/INFO]: [spark] Starting background profiler... [18:55:51] [Server thread/INFO]: [PlaceholderAPI] Placeholder expansion registration initializing... [18:55:51] [Server thread/INFO]: Done preparing level "world" (14.435s) [18:55:51] [Server thread/INFO]: Running delayed init tasks [18:55:51] [Craft Scheduler Thread - 1 - ViaVersion/INFO]: [ViaVersion] Finished mapping loading, shutting down loader executor! [18:55:51] [Craft Scheduler Thread - 10 - DecentHolograms/INFO]: [DecentHolograms] Loading holograms... [18:55:51] [Server thread/INFO]: [com.fastasyncworldedit.bukkit.regions.WorldGuardFeature] Plugin 'WorldGuard' found. Using it now. [18:55:51] [Server thread/INFO]: [com.fastasyncworldedit.bukkit.FaweBukkit] Attempting to use plugin 'WorldGuard' [18:55:51] [Craft Scheduler Thread - 10 - DecentHolograms/INFO]: [DecentHolograms] Loaded 3 holograms! [18:55:51] [Craft Scheduler Thread - 4 - Essentials/INFO]: [Essentials] Получение информации о версии... [18:55:51] [Server thread/INFO]: [Essentials] Essentials found a compatible payment resolution method: Vault Compatibility Layer (v1.7.3-b131)! [18:55:51] [Craft Scheduler Thread - 9 - ItemsAdder/INFO]: [ItemsAdder] Loaded 398 items [18:55:51] [Craft Scheduler Thread - 9 - ItemsAdder/INFO]: [ItemsAdder] Used 3/188 REAL block IDs [18:55:51] [Craft Scheduler Thread - 9 - ItemsAdder/INFO]: [ItemsAdder] Used 47/750 REAL_NOTE block IDs [18:55:51] [Craft Scheduler Thread - 9 - ItemsAdder/INFO]: [ItemsAdder] Used 3/63 REAL_TRANSPARENT block IDs [18:55:51] [Craft Scheduler Thread - 9 - ItemsAdder/INFO]: [ItemsAdder] Used 0/127 REAL_WIRE block IDs [18:55:51] [Craft Scheduler Thread - 9 - ItemsAdder/INFO]: [ItemsAdder] Used 0/14 FIRE block IDs [18:55:51] [Craft Scheduler Thread - 9 - ItemsAdder/INFO]: [ItemsAdder] Used 667/6608 font_images [18:55:51] [Craft Scheduler Thread - 6 - ODailyQuests/WARN]: [O'DailyQuests] A new update is available ! [18:55:51] [Craft Scheduler Thread - 6 - ODailyQuests/WARN]: [O'DailyQuests] Current version : 2.3.0-SNAPSHOT-10, Available version : 2.2.5 [18:55:51] [Craft Scheduler Thread - 6 - ODailyQuests/WARN]: [O'DailyQuests] Please download latest version : [18:55:51] [Craft Scheduler Thread - 6 - ODailyQuests/WARN]: [O'DailyQuests] https://www.spigotmc.org/resources/odailyquests.100990/ [18:55:52] [Craft Scheduler Thread - 5 - ItemsAdder/INFO]: [ItemsAdder] [License] Spigot product licensed to: Truika (593962) [18:55:52] [Craft Scheduler Thread - 9 - ItemsAdder/INFO]: [ItemsAdder] [Init] Loaded 31 categories [18:55:52] [Craft Scheduler Thread - 9 - ItemsAdder/INFO]: [ItemsAdder] [Init] Loaded successfully. [18:55:52] [Craft Scheduler Thread - 9 - ItemsAdder/INFO]: [ItemsAdder] [Pack] Resourcepack URL (self-host): http://185.189.255.168:8163/generated.zip [18:55:53] [Server thread/INFO]: [Citizens] Loaded 129 NPCs. [18:55:53] [Server thread/INFO]: [PlaceholderAPI] Successfully registered external expansion: player [2.0.8] [18:55:53] [Server thread/INFO]: [PlaceholderAPI] Successfully registered external expansion: statistic [2.0.1] [18:55:53] [Server thread/INFO]: 2 placeholder hook(s) registered! [18:55:53] [Server thread/INFO]: [ItemsAdder] Reloading ItemsAdder Custom Entities Citizens NPCs... [18:55:53] [Server thread/INFO]: [ItemsAdder] Reloaded 0 ItemsAdder Custom Entities Citizens NPCs. [18:55:53] [Server thread/INFO]: [PlaceholderAPI] Successfully registered internal expansion: img [1.0.1] [18:55:53] [Server thread/INFO]: [PlaceholderAPI] Successfully registered internal expansion: iaplayerstat [1.0.1]

[18:55:53] [Craft Scheduler Thread - 4 - Essentials/WARN]: [Essentials] Вы отстаете на 4 сборок EssentialsX! [18:55:53] [Craft Scheduler Thread - 4 - Essentials/WARN]: [Essentials] Скачайте её отсюда: https://essentialsx.net/downloads.html [18:55:53] [User Authenticator #0/INFO]: UUID of player _PrOsToNiK is 68694a1f-cadf-34a8-990e-08bdfdba2fc5 [18:55:53] [User Authenticator #1/INFO]: UUID of player XPersukX is 35091c40-1a25-3d9e-8ba2-7f0263dd346c [18:55:54] [Server thread/INFO]: XPersukX[/46.53.211.208:48131] logged in with entity id 651 at ([spawn]412.0981282252675, 70.186972568563, 2589.48621615595) [18:55:55] [Craft Scheduler Thread - 9 - ODailyQuests/INFO]: [O'DailyQuests] XPersukX's quests have been loaded. [18:55:57] [Server thread/INFO]: _PrOsToNiK[/46.0.24.76:56233] logged in with entity id 606 at ([spawn]-377.8200440636486, 46.0, 3267.6453372928795) [18:55:57] [Craft Scheduler Thread - 11 - ODailyQuests/INFO]: [O'DailyQuests] _PrOsToNiK's quests have been loaded. [18:55:59] [Server thread/INFO]: XPersukX issued server command: /gm 1 [18:56:09] [WorldGuard Region I/O/INFO]: [WorldGuard] Region data changes made in 'spawn' have been background saved [18:56:12] [Server thread/INFO]: ItemStack{DIAMOND_SWORD x 1} [18:56:12] [Server thread/INFO]: ItemStack{STICK x 1, UNSPECIFIC_META:{meta-type=UNSPECIFIC, display-name={"text":"Картонная коробка","italic":false,"color":"white"}, custom-model-data=10048, custom=H4sIAAAAAAAA/wXBQQ7AIAgEwE1PyicbCpuGg2jQQ5/fGQEEEodjqzur4QqHmNaZeT/za+ipg3upET30ZbLCgB/MZIChOgAAAA==}} [18:56:12] [Server thread/ERROR]: Could not pass event PlayerInteractEvent to PNLoader v1.0-SNAPSHOT java.lang.ClassCastException: Cannot cast ia.m.eH to org.bukkit.craftbukkit.inventory.CraftItemStack at java.base/java.lang.Class.cast(Class.java:4067) ~[?:?] at org.bukkit.craftbukkit.inventory.CraftItemStack.getCraftStack(CraftItemStack.java:46) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at org.bukkit.craftbukkit.inventory.CraftItemStack.asNMSCopy(CraftItemStack.java:97) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at org.bukkit.craftbukkit.inventory.CraftInventory.setItem(CraftInventory.java:100) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at org.bukkit.craftbukkit.inventory.CraftInventoryPlayer.setItem(CraftInventoryPlayer.java:73) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at PNLoader.jar/olympmc.pnloader.utils.InventoryUtil.addItem(InventoryUtil.java:56) ~[PNLoader.jar:?] at PNLoader.jar/olympmc.pnloader.Job.addItem(Job.java:147) ~[PNLoader.jar:?] at PNLoader.jar/olympmc.pnloader.PlayerListener.onInteract(PlayerListener.java:47) ~[PNLoader.jar:?] at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor384.execute(Unknown Source) ~[?:?] at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[paper-mojangapi-1.21-R0.1-SNAPSHOT.jar:?] at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[paper-mojangapi-1.21-R0.1-SNAPSHOT.jar:1.21-2276-72ccfbd] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-mojangapi-1.21-R0.1-SNAPSHOT.jar:?] at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:131) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:628) ~[paper-mojangapi-1.21-R0.1-SNAPSHOT.jar:?] at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:598) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.server.level.ServerPlayerGameMode.useItemOn(ServerPlayerGameMode.java:538) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.server.network.ServerGamePacketListenerImpl.handleUseItemOn(ServerGamePacketListenerImpl.java:1949) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.network.protocol.game.ServerboundUseItemOnPacket.handle(ServerboundUseItemOnPacket.java:44) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.network.protocol.game.ServerboundUseItemOnPacket.handle(ServerboundUseItemOnPacket.java:11) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:56) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.server.TickTask.run(TickTask.java:18) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:151) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1572) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:201) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:125) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1549) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1542) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:135) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.server.MinecraftServer.managedBlock(MinecraftServer.java:1501) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1508) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1353) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:333) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?] [18:56:17] [Server thread/INFO]: ItemStack{DIAMOND_SWORD x 1} [18:56:17] [Server thread/INFO]: ItemStack{STICK x 1, UNSPECIFIC_META:{meta-type=UNSPECIFIC, display-name={"text":"Картонная коробка","italic":false,"color":"white"}, custom-model-data=10048, custom=H4sIAAAAAAAA/wXBQQ7AIAgEwE1PyicbCpuGg2jQQ5/fGQEEEodjqzur4QqHmNaZeT/za+ipg3upET30ZbLCgB/MZIChOgAAAA==}} [18:56:17] [Server thread/ERROR]: Could not pass event PlayerInteractEvent to PNLoader v1.0-SNAPSHOT java.lang.ClassCastException: Cannot cast ia.m.eH to org.bukkit.craftbukkit.inventory.CraftItemStack at java.base/java.lang.Class.cast(Class.java:4067) ~[?:?] at org.bukkit.craftbukkit.inventory.CraftItemStack.getCraftStack(CraftItemStack.java:46) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at org.bukkit.craftbukkit.inventory.CraftItemStack.asNMSCopy(CraftItemStack.java:97) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at org.bukkit.craftbukkit.inventory.CraftInventory.setItem(CraftInventory.java:100) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at org.bukkit.craftbukkit.inventory.CraftInventoryPlayer.setItem(CraftInventoryPlayer.java:73) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at PNLoader.jar/olympmc.pnloader.utils.InventoryUtil.addItem(InventoryUtil.java:56) ~[PNLoader.jar:?] at PNLoader.jar/olympmc.pnloader.Job.addItem(Job.java:147) ~[PNLoader.jar:?] at PNLoader.jar/olympmc.pnloader.PlayerListener.onInteract(PlayerListener.java:47) ~[PNLoader.jar:?] at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor384.execute(Unknown Source) ~[?:?] at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[paper-mojangapi-1.21-R0.1-SNAPSHOT.jar:?] at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[paper-mojangapi-1.21-R0.1-SNAPSHOT.jar:1.21-2276-72ccfbd] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-mojangapi-1.21-R0.1-SNAPSHOT.jar:?] at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:131) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:628) ~[paper-mojangapi-1.21-R0.1-SNAPSHOT.jar:?] at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:598) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.server.level.ServerPlayerGameMode.useItemOn(ServerPlayerGameMode.java:538) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.server.network.ServerGamePacketListenerImpl.handleUseItemOn(ServerGamePacketListenerImpl.java:1949) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.network.protocol.game.ServerboundUseItemOnPacket.handle(ServerboundUseItemOnPacket.java:44) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.network.protocol.game.ServerboundUseItemOnPacket.handle(ServerboundUseItemOnPacket.java:11) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:56) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.server.TickTask.run(TickTask.java:18) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:151) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1572) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:201) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:125) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1549) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1542) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:135) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.server.MinecraftServer.managedBlock(MinecraftServer.java:1501) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1508) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1353) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:333) ~[purpur-1.21.jar:1.21-2276-72ccfbd] at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?] [19:03:23] [Server thread/INFO]: XPersukX issued server command: //set packed_ice,blue_ice [19:03:23] [AsyncNotifyKeyedQueue - 0/INFO]: Using com.sk89q.worldedit.bukkit.adapter.impl.fawe.v1_21_R1.PaperweightStarlightRelighterFactory as relighter factory. [19:03:31] [Server thread/INFO]: XPersukX issued server command: //set packed_ice,blue_ice [19:03:36] [Server thread/INFO]: XPersukX issued server command: //set packed_ice,blue_ice [19:03:41] [Server thread/INFO]: XPersukX issued server command: //set packed_ice,blue_ice [19:03:53] [Server thread/INFO]: XPersukX issued server command: //set packed_ice,blue_ice [19:03:56] [Server thread/INFO]: XPersukX issued server command: //set packed_ice,blue_ice [19:04:25] [Server thread/INFO]: _PrOsToNiK issued server command: /version [19:04:40] [Server thread/INFO]: Checking version, please wait... [19:04:40] [Thread-24/INFO]: Current Purpur Version: 1.21-2276-72ccfbd (MC: 1.21)*

Error (optional)

[18:56:12] [Server thread/ERROR]: Could not pass event PlayerInteractEvent to PNLoader v1.0-SNAPSHOT
java.lang.ClassCastException: Cannot cast ia.m.eH to org.bukkit.craftbukkit.inventory.CraftItemStack
    at java.base/java.lang.Class.cast(Class.java:4067) ~[?:?]
    at org.bukkit.craftbukkit.inventory.CraftItemStack.getCraftStack(CraftItemStack.java:46) ~[purpur-1.21.jar:1.21-2276-72ccfbd]
    at org.bukkit.craftbukkit.inventory.CraftItemStack.asNMSCopy(CraftItemStack.java:97) ~[purpur-1.21.jar:1.21-2276-72ccfbd]
    at org.bukkit.craftbukkit.inventory.CraftInventory.setItem(CraftInventory.java:100) ~[purpur-1.21.jar:1.21-2276-72ccfbd]
    at org.bukkit.craftbukkit.inventory.CraftInventoryPlayer.setItem(CraftInventoryPlayer.java:73) ~[purpur-1.21.jar:1.21-2276-72ccfbd]
    at PNLoader.jar/olympmc.pnloader.utils.InventoryUtil.addItem(InventoryUtil.java:56) ~[PNLoader.jar:?]
    at PNLoader.jar/olympmc.pnloader.Job.addItem(Job.java:147) ~[PNLoader.jar:?]
    at PNLoader.jar/olympmc.pnloader.PlayerListener.onInteract(PlayerListener.java:47) ~[PNLoader.jar:?]
    at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor384.execute(Unknown Source) ~[?:?]
    at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[paper-mojangapi-1.21-R0.1-SNAPSHOT.jar:?]
    at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[paper-mojangapi-1.21-R0.1-SNAPSHOT.jar:1.21-2276-72ccfbd]
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-mojangapi-1.21-R0.1-SNAPSHOT.jar:?]
    at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[purpur-1.21.jar:1.21-2276-72ccfbd]
    at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:131) ~[purpur-1.21.jar:1.21-2276-72ccfbd]
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:628) ~[paper-mojangapi-1.21-R0.1-SNAPSHOT.jar:?]
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:598) ~[purpur-1.21.jar:1.21-2276-72ccfbd]
    at net.minecraft.server.level.ServerPlayerGameMode.useItemOn(ServerPlayerGameMode.java:538) ~[purpur-1.21.jar:1.21-2276-72ccfbd]
    at net.minecraft.server.network.ServerGamePacketListenerImpl.handleUseItemOn(ServerGamePacketListenerImpl.java:1949) ~[purpur-1.21.jar:1.21-2276-72ccfbd]
    at net.minecraft.network.protocol.game.ServerboundUseItemOnPacket.handle(ServerboundUseItemOnPacket.java:44) ~[purpur-1.21.jar:1.21-2276-72ccfbd]
    at net.minecraft.network.protocol.game.ServerboundUseItemOnPacket.handle(ServerboundUseItemOnPacket.java:11) ~[purpur-1.21.jar:1.21-2276-72ccfbd]
    at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:56) ~[purpur-1.21.jar:1.21-2276-72ccfbd]
    at net.minecraft.server.TickTask.run(TickTask.java:18) ~[purpur-1.21.jar:1.21-2276-72ccfbd]
    at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:151) ~[purpur-1.21.jar:1.21-2276-72ccfbd]
    at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[purpur-1.21.jar:1.21-2276-72ccfbd]
    at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1572) ~[purpur-1.21.jar:1.21-2276-72ccfbd]
    at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:201) ~[purpur-1.21.jar:1.21-2276-72ccfbd]
    at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:125) ~[purpur-1.21.jar:1.21-2276-72ccfbd]
    at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1549) ~[purpur-1.21.jar:1.21-2276-72ccfbd]
    at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1542) ~[purpur-1.21.jar:1.21-2276-72ccfbd]
    at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:135) ~[purpur-1.21.jar:1.21-2276-72ccfbd]
    at net.minecraft.server.MinecraftServer.managedBlock(MinecraftServer.java:1501) ~[purpur-1.21.jar:1.21-2276-72ccfbd]
    at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1508) ~[purpur-1.21.jar:1.21-2276-72ccfbd]
    at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1353) ~[purpur-1.21.jar:1.21-2276-72ccfbd]
    at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:333) ~[purpur-1.21.jar:1.21-2276-72ccfbd]
    at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]

Problematic items yml configuration file (optional)

No response

Other files, you can drag and drop them here to upload. (optional)

No response

Screenshots/Videos (you can drag and drop files or paste links)

No response

Andre601 commented 3 months ago

Duplicate of #3825

Check the issue tracker before making a new issue.