Releases: Arnuh/ArmorEquipEvent
1.7.6-SNAPSHOT
Fixes "Player Head" not counting as a helmet #26
Doesn't call unequip on death if keep inventory is enabled #25
Specify api version of 1.14. Not sure if this works properly on pre 1.14 servers.
Is marked as pre-release/snapshot but is considered safe. It wont be considered a pre-release on github to avoid people downloading an outdated version.
1.7.4
1.7.3
1.7.1
1.7.0
I'm hoping to make ArmorEquipEvent a reliable event without any issues and hopefully in the 1.7 releases I'll be able to do this.
In 1.7.0 I made a few changes with potentially more to come later after testing has been done.
I've added a method in ArmorListener that checks if an ItemStack is either null or air. This is important going forward since Spigot heavily favors the AIR material and is recommended to use over null. Later in 1.7 I'll also be removing ArmorEquipEvent returning null for ItemStacks at all and only use AIR as this will clean up checks and follow Spigots conventions.
I've also added a InventoryAction.NOTHING check to the top of InventoryClickEvent which will hopefully catch most 'false' clicks that are sent. This was suggested by SiezureSalad on Spigot.
Then for last change I made a slight change to how PICK_DROP is setup which should hopefully fix an incorrect ArmorType that was being sent(This might need more testing)
Another plan for ArmorEquipEvent is to remove the need for the "blockedMaterials" check but this is most likely farther down the line.
Support for InventoryDragEvent
- Support InventoryDragEvent and use EquipMethod.DRAG
- Count Pumpkin as a HELMET
- Rename old EquipMethod.DRAG to EquipMethod.PICK_DROP
Currently a 'pre-release' since I haven't done much testing with this.