Code Cleanup
The code has received a complete cleanup.
Now it's more stable, efficient and precise.
Also fixed the name in the plugin.yml file.
Bug Fix
Fixed a bug where customized player heads (and custom items in general) would merge between them and become undistiguishable. The plugin was not checking the items' metadata before merging them, only the material. Therefore different custom items with the same minecraft material would merge and become one unique stack.
The plugin now distiguishes items:
- With and without enchantments
- With and without a custom lore
- With and without a custom name
If the items have custom names or they are custom player heads with specific owners, they will get sorted in alphabetical order.
Custom Heads with Custom Names
If there are custom player heads WITH custom names the custom names will be prioritized over the owners' names for sorting. The heads without a custom name will still be sorted by the owners' names but they will be placed before the ones with a custom name.
Known Bugs
- Doesn't sort the "Survival Inventory" while in creative mode, unless you do so with another inventory open (chest, barrel, ender chest, etc...)