PluginBugs / Issues-ItemsAdder

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

Could not pass event ArmorEquipEvent #2924

Closed yngdrms closed 1 year ago

yngdrms commented 1 year ago

Terms

Discord tag (optional)

yngdrms

What happened?

After death with cosmetic items from the Magic Cosmetics plugin, an error occurs in the console.

Steps to reproduce the issue

  1. Install ItemsAdder + LoneLibs
  2. Install MagicCosmetics
  3. Put on a cosmetic item and die from any way

Server version

This server is running GuardSpigot 1.16.5 version git-Airplane-"b0d4eb6" (MC: 1.16.5) (Implementing API version 1.16.5-R0.1-SNAPSHOT)

ItemsAdder Version

ItemsAdder version 3.5.0c-r3

ProtocolLib Version

ProtocolLib version 5.1.0-SNAPSHOT-652

LoneLibs Version

LoneLibs version 1.0.25

FULL server log

No response

Error (optional)

[14:05:53 ERROR]: Could not pass event ArmorEquipEvent to ItemsAdder v3.5.0c-r3
java.lang.NullPointerException: Cannot invoke "dev.lone.LoneLibs.armorequip.ArmorType.ordinal()" because "<parameter1>" is null
        at ia.m.jI.a(SourceFile:1419) ~[?:?]
        at ia.m.dX.a(SourceFile:93) ~[?:?]
        at ia.m.dX.a(SourceFile:51) ~[?:?]
        at com.destroystokyo.paper.event.executor.MethodHandleEventExecutor.execute(:40) ~[server.jar:git-Airplane-"b0d4eb6"]
        at co.aikar.timings.TimedEventExecutor.execute(:76) ~[server.jar:git-Airplane-"b0d4eb6"]
        at org.bukkit.plugin.RegisteredListener.callEvent(:70) ~[server.jar:git-Airplane-"b0d4eb6"]
        at org.bukkit.plugin.SimplePluginManager.callEvent(:624) ~[server.jar:git-Airplane-"b0d4eb6"]
        at dev.lone.LoneLibs.armorequip.ArmorListener.playerDeathEvent(ArmorListener.java:270) ~[?:?]
        at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor1098.execute(Unknown Source) ~[?:?]
        at org.bukkit.plugin.EventExecutor.lambda$create$1(:69) ~[server.jar:git-Airplane-"b0d4eb6"]
        at co.aikar.timings.TimedEventExecutor.execute(:76) ~[server.jar:git-Airplane-"b0d4eb6"]
        at org.bukkit.plugin.RegisteredListener.callEvent(:70) ~[server.jar:git-Airplane-"b0d4eb6"]
        at org.bukkit.plugin.SimplePluginManager.callEvent(:624) ~[server.jar:git-Airplane-"b0d4eb6"]
        at org.bukkit.craftbukkit.v1_16_R3.event.CraftEventFactory.callPlayerDeathEvent(:892) ~[server.jar:git-Airplane-"b0d4eb6"]
        at net.minecraft.server.v1_16_R3.EntityPlayer.die(:1001) ~[server.jar:git-Airplane-"b0d4eb6"]
        at net.minecraft.server.v1_16_R3.EntityLiving.damageEntity(:1393) ~[server.jar:git-Airplane-"b0d4eb6"]
        at net.minecraft.server.v1_16_R3.EntityHuman.damageEntity(:903) ~[server.jar:git-Airplane-"b0d4eb6"]
        at net.minecraft.server.v1_16_R3.EntityPlayer.damageEntity(:1181) ~[server.jar:git-Airplane-"b0d4eb6"]
        at net.minecraft.server.v1_16_R3.EntityHuman.attack(:1230) ~[server.jar:git-Airplane-"b0d4eb6"]
        at net.minecraft.server.v1_16_R3.EntityPlayer.attack(:2285) ~[server.jar:git-Airplane-"b0d4eb6"]
        at net.minecraft.server.v1_16_R3.PlayerConnection.a(:2536) ~[server.jar:git-Airplane-"b0d4eb6"]
        at net.minecraft.server.v1_16_R3.PacketPlayInUseEntity.a(:55) ~[server.jar:git-Airplane-"b0d4eb6"]
        at net.minecraft.server.v1_16_R3.PacketPlayInUseEntity.a(:12) ~[server.jar:git-Airplane-"b0d4eb6"]
        at net.minecraft.server.v1_16_R3.PlayerConnectionUtils.lambda$ensureMainThread$1(:55) ~[server.jar:git-Airplane-"b0d4eb6"]
        at net.minecraft.server.v1_16_R3.TickTask.run(:18) ~[server.jar:git-Airplane-"b0d4eb6"]
        at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeTask(:136) ~[server.jar:git-Airplane-"b0d4eb6"]
        at net.minecraft.server.v1_16_R3.IAsyncTaskHandlerReentrant.executeTask(:23) ~[server.jar:git-Airplane-"b0d4eb6"]
        at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeNext(:109) ~[server.jar:git-Airplane-"b0d4eb6"]
        at net.minecraft.server.v1_16_R3.MinecraftServer.bb(:1337) ~[server.jar:git-Airplane-"b0d4eb6"]
        at net.minecraft.server.v1_16_R3.MinecraftServer.executeNext(:1330) ~[server.jar:git-Airplane-"b0d4eb6"]
        at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.awaitTasks(:119) ~[server.jar:git-Airplane-"b0d4eb6"]
        at net.minecraft.server.v1_16_R3.MinecraftServer.sleepForTick(:1306) ~[server.jar:git-Airplane-"b0d4eb6"]
        at net.minecraft.server.v1_16_R3.MinecraftServer.w(:1150) ~[server.jar:git-Airplane-"b0d4eb6"]
        at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$1(:289) ~[server.jar:git-Airplane-"b0d4eb6"]
        at java.lang.Thread.run(Thread.java:833) [?:?]

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

luizsusin commented 1 year ago

Just as a comment: I have the same issue on Purpur 1.20.1 with CosmeticsCore instead of MagicCosmetics.

LoneDev6 commented 1 year ago

Update to r4.