Error Itemsadder Items with MythicAchievements conditions
The problem appeared when I was creating achievements using this plugin. In my achievements, it was necessary to use achievements with the "condition" parameter. When I selected the hasitem function in the "condition" parameter, that's when the problems started. Since in order to achieve this, I needed a condition in the form of having a custom item in the player's inventory, I used the Itemsadder plugin for the custom item. I specified it in this parameter, but as a result I was given an error in this format (I will insert it below). When I specified items from the MythicMobs plugin or MMOItems or just vanilla items in the "Condition" hasitem, everything worked. I wrote to the ItemsAdder developer about this. He told me the following:
(Itemsadder Developer): Why do you feel like it's related to ItemsAdder? Seems an issue with their code, I see no trace of ItemsAdder in the error. The issue is in this part of their code: io.lumine.mythic.bukkit.adapters.BukkitItemStack.isSimilar(org.bukkit.inventory.ItemStack) They should do a null check on the item parameter. Let me know.
Also, my error log on my server (PurPur 1.20.1) Please, help me :) Your plugin amazing, but this problem is very important for me.
[13:19:43] [Craft Scheduler Thread - 32 - MythicMobs/WARN]: [MythicMobs] ✗ Configuration Error in Condition HasItem [13:19:43] [Craft Scheduler Thread - 32 - MythicMobs/WARN]: [MythicMobs] --| Error Message: An internal error occurred [13:19:43] [Craft Scheduler Thread - 32 - MythicMobs/WARN]: [MythicMobs] --| Condition Line: hasitem{m=ribalka:tuna;amount=1} true [13:19:43] [Craft Scheduler Thread - 32 - MythicMobs/WARN]: java.lang.NullPointerException: Cannot invoke "io.lumine.mythic.bukkit.adapters.BukkitItemStack.isSimilar(org.bukkit.inventory.ItemStack)" because "this.item" is null [13:19:43] [Craft Scheduler Thread - 32 - MythicMobs/WARN]: at MythicMobs-5.5.0.jar//io.lumine.mythic.core.skills.conditions.all.HasItemCondition.checkInventory(HasItemCondition.java:75) [13:19:43] [Craft Scheduler Thread - 32 - MythicMobs/WARN]: at MythicMobs-5.5.0.jar//io.lumine.mythic.core.skills.conditions.all.HasItemCondition.check(HasItemCondition.java:58) [13:19:43] [Craft Scheduler Thread - 32 - MythicMobs/WARN]: at MythicMobs-5.5.0.jar//io.lumine.mythic.core.skills.SkillCondition.evaluateToEntity(SkillCondition.java:167) [13:19:43] [Craft Scheduler Thread - 32 - MythicMobs/WARN]: at MythicAchievements-Premium-0.0.5.jar//io.lumine.achievements.achievement.Criteria.checkConditions(Criteria.java:110) [13:19:43] [Craft Scheduler Thread - 32 - MythicMobs/WARN]: at MythicAchievements-Premium-0.0.5.jar//io.lumine.achievements.achievement.criteria.ConditionalCriteria.run(ConditionalCriteria.java:49) [13:19:43] [Craft Scheduler Thread - 32 - MythicMobs/WARN]: at MythicMobs-5.5.0.jar//io.lumine.mythic.bukkit.utils.Delegates$RunnableToConsumer.accept(Delegates.java:93) [13:19:43] [Craft Scheduler Thread - 32 - MythicMobs/WARN]: at MythicMobs-5.5.0.jar//io.lumine.mythic.bukkit.utils.Schedulers$LumineTask.run(Schedulers.java:184) [13:19:43] [Craft Scheduler Thread - 32 - MythicMobs/WARN]: at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftTask.run(CraftTask.java:101) [13:19:43] [Craft Scheduler Thread - 32 - MythicMobs/WARN]: at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) [13:19:43] [Craft Scheduler Thread - 32 - MythicMobs/WARN]: at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) [13:19:43] [Craft Scheduler Thread - 32 - MythicMobs/WARN]: at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [13:19:43] [Craft Scheduler Thread - 32 - MythicMobs/WARN]: at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [13:19:43] [Craft Scheduler Thread - 32 - MythicMobs/WARN]: at java.base/java.lang.Thread.run(Thread.java:840)