HarvestFlow v1.13 - The Dynamic Rewards Update!
This update introduces a highly requested feature for more dynamic rewards and fixes a critical bug related to configuration reloading.
✨ New Features
Bonus Commands on Harvest
You can now configure commands to be executed on a random chance when a player harvests a crop, completely separate from item-based bonuses. This allows for more creative rewards like giving players temporary potion effects, sending them a message, granting economy money, or triggering other server events.
- This new optional section, bonus-command, can be added to any crop in the item-drops section of your config.yml.
Example Configuration:
Code (Text):
item-drops:
WHEAT:
custom-drop: true
material: AMETHYST_SHARD
# ... other settings ...
bonus-command:
# 10% chance for these commands to run
chance: 0.1
commands:
- "msg %player% &aYou feel a surge of magical energy!"
- "effect give %player% speed 10 1"
Bug Fixes & Improvements
Critical Fix for Configuration Reloading
- Fixed an issue where the plugin would not correctly process changes after using the /hf reload command. Previously, if you removed an entire optional section (like bonus or the new bonus-command) from a crop in config.yml, the plugin would continue to use the old settings from its memory cache. Now, the reload command forces a complete re-read of the config.yml file from the disk, ensuring all changes, including deletions, are applied immediately and correctly.
Technical Changes
- The config-version has been updated to 10. The plugin will automatically add the new bonus-command section to your config.yml as an example upon startup if your config is outdated.