Lorenzo0111 / QualityArmory

A quality gun plugin similar to CrackShot.
GNU General Public License v3.0
95 stars 50 forks source link

[Bug]: Custom armor Attributes not working #539

Open Sesantanove opened 12 months ago

Sesantanove commented 12 months ago

Confirmations

What happened?

When using custom armor attributes (changing the protection), the plugin does not reduce the damage (even if in the debug mode it says that the damage got reduced)

Expected Behaviour

The Damage should be reduced based on the armor protection value

Plugins

AdvancedReplay, Banknotes, BigDoors, BroadcastPlus, BungeeGuard, ChatDistancePlus, ClearLag, ColoredSigns, ConsoleSpamFix, CoreProtect, CorpseReborn, CraftEnhance, Elevator, EpicRename, Essentials, EssentialsChat, EssentialsSpawn, GMDICostumModelData, HolographicDisplays, HubKick, Images, InventoryRollbackPlus, InvSeePlusPlus, InvSeePlusPlus_Clear, InvSeePlusPlus_Give, ItemStackReloaded, LockettePro, LoneLibs, LootBox, LPC, LuckPerms, MVdWPlaceholderAPI, NoPlugins, PlaceholderAPI, PlugManX (PlugMan), ProtocolLib, QualityArmory, ServersNPC, SharpSK, ShieldFix, ShulkerBoxBackPacks, SimpleSit, SkBee, SkinsRestorer, SkQuery, skRayFall, Skript, Skript-AnvilGUI, skript-placeholders*, skript-reflect, TAB, TimeIsMoney, TradeSystem, TropeaTaser, Vault, WorldEdit, WorldGuard

Server Version

This server is running Purpur version git-Purpur-1171 (MC: 1.16.5) (Implementing API version 1.16.5-R0.1-SNAPSHOT)

Relevant log output

No response

Sesantanove commented 12 months ago

Found out that using normal minecraft armor qa doesn't return the actual armor value but it says 0, so enabling enableIgnoreArmorProtection to true fixes this thing (if you want it to be disabled give negative armor)