Major update - A lot of stuff. Just read the update. :^)
Back at it again with another major update! Contains a lot of useful stuff, so make sure you read everything. Requires a re-generation of config.yml.
————————————————————————
Duels v1.3.0-BETA
It's called BETA for a reason. This update was written in under 1.5 hours and I'm expecting there to be some bugs. (Don't blame me, lack of time IRL :^( ) If you're running a huge server, I recommend you to wait until the version is confirmed stable.
This update focuses on implementing the suggestions I've received and bug patches. Over 500+ lines were added and 250+ lines were removed!
General Improvements
- Code cleanups & optimization as usual.
- Better configuration handling system. If a value is missing, it will use the default config value instead of breaking (hopefully).
- Better handling of match end.
New Features
- Countdowns! They are now available and is fully customisable in the configuration. Block certain actions while countdown is running! Read the top of the updated configuration for more information! (Suggestion by @BluueJay)
- Editable map selector item names! Read the GUI section in the updated configuration for more information! (Suggestion by @TheIronMinerLv)
- Using player's own inventory for duels! The most requested suggestion is now live! Read the updated configuration for more information!
- Custom command execution for winner and loser on match end! Read the updated configuration for more information! (Suggestion by @BluueJay)
Bug Fixes
- Handles the bug reported by @killkill_85: "Players type /trade [name] before starting a duel and the other player accepts the trade, allowing duel items to be transferred." - Use the new option named fix-inventory-open in the configuration for a patch! (auto-enabled)
- Handles the bug reported by @Exzone: "Players get stuck in a block on teleportation to the arena" - The update will try to fix this once again, but I have no idea if it'll work on servers with many players.
- Handles the bug reported by @KyroFrost: "Error occurs when another plugin sets player's max health to a custom value." - The update will patch this completely.
- Handles the bug reported by @StudioBeat: "/spawn command is not blocked by the default configuration." - The update will add this command and all its aliases, sorry for forgetting about this!
Thanks to all bug reporters & people who submitted suggestions! If you're experiencing any issues, please PM me about them. Suggestions should be sent through PM. Thanks for downloading!