GC-spigot / AdvancedEnchantments

Superior Custom Enchantments Creator for Minecraft And Spigot platform
141 stars 61 forks source link

BUG ADD_DURABILITY_ARMOR:-10 #4247

Closed KingFouXx closed 2 months ago

KingFouXx commented 2 months ago

Describe the bug

Hello, I'm reporting a bug with the AdvancedEnchantments plugin. Plugin info: https://paste.md-5.net/siticawele. The event ADD_DURABILITY_ARMOR:-10 @Victim doesn't seem to work and appears to repair the opponent's armor.

How to reproduce

demonforged: display: '%group-color%Demonforged' description: |- Augmente la perte de durabilité sur l'armure de votre ennemi. applies-to: Swords type: ATTACK group: ELITE applies:

Screenshots / Videos

https://www.mediafire.com/file/ucnvbh89wupnxdr/Minecraft__1.20.1_-_Multijoueur_serveur_tiers_2024-05-03_17-40-45.mp4/file

"/ae plinfo" link

https://paste.md-5.net/siticawele

Server Log

No response

GC-spigot commented 2 months ago

This works as intended, @Victim in this case is the player who got damaged, @Attacker is the player which attacked (using the enchant). Using negative values will damage the armor, using positive (above 0) will repair the armor.