Bug fixes and improvements.
This update is crusial as it contains several improvements, along with a few important bug fixes. I'll be listing the changes below:
Bug fixes
- When a different player interacts with another player's voidchest inventory (menu), it will fail to act as a menu inventory thus allowing players to pull out items.
- Upon using the /voidchest reload command, an error was displayed in the console due to the VoidEconomy api.
- If you were to enter a negative number in /voidchest <player> [amount], it would display the negative amount, which is not rational. Numbers are now made absolute.
- If certain paths in the files were not found, the plugin would throw errors. If a path isn't found, a default value will be used.
- Voidchest's reload will now correctly reload all files.
Improvements
- ASkyBlock will now operate even if the owner of the voidchest is offline.
- Inventories now have a placeholder: %owner% which is replaced by the voidchest's owner name. (Works in both inventories)
- Due to how spigot handles item transfers from hoppers to items, from now, items won't be transfered into the voidchest's inventory but rather into the chest's inventory. However, this has no performance issues whatsoever. After the set sell interval in options, all items are going to be transferred into the voidchest inventory and then the attempt to sell them will occur.
- Improved several code logic such as how the give command works (smaller & more efficient)
- Improved and fixed sell logic for voidchest, shopguiplus and essentials.
- Added an option so as to be able to either ignore or not item meta (name, lore, enchants, etc). Meaning, if decided to not ignore, item's with any of the things mentioned earlier will be counted as not a sellable. This is to prevent enchanted items and or re-named ones from being sold (If purge is on, they will be removed however).
- (For developers) Added 2 events: VoidSellChestEvent, VoidSellEvent. First fired whenever a voidchest is about to initiate a sell, second one is fired whenever an item is about to be sold.
- Permissions added:
- voidchest.place -> Allows a player to place a voidchest.
- voidchest.break -> Allows a player to break their own voidchest.
- voidchest.break.bypass -> Allows a player to break other player's voidchests.
- Invalid materials will be turned into bedrock in file.
Things to note
- Some paths were either changed, added and or removed. Please keep a backup of your files and delete the old ones. Restart the server properly so as to allow the plugin to load all new yaml files.