Added a new admin-only command (requires farmv1.admin.reload permission) to reload the configuration (config.yml) without restarting the server, enabling real-time adjustments.
Full French Localization:
All in-game messages have been translated into French for a fully immersive and consistent experience.
Improvements
Expanded Configuration System:
XP is now individually configurable for each block type, crop (wheat, carrots, potatoes, beetroots, nether wart), and monster (zombie, skeleton, creeper, spider), with default values (5 XP for blocks, 1-5 XP for crops, 10 XP for monsters).
Support for Native Minecraft Crops:
Replaced custom crops (moonflower, magicwheat) with native crops (wheat, carrots, potatoes, beetroots, nether wart), featuring growth and manual harvesting based on vanilla mechanics.
Performance Optimization:
Reduced CPU load for the /farm zone command with optimized particle sampling (every 5 ticks, 5-second duration).
Bug Fixes
Fixed getMaximumAge Error:
Resolved a compilation error with getMaximumAge() in the manual harvesting logic, ensuring proper handling of mature crops.
Syntax Correction:
Fixed a syntax issue in the canInteract method where location.getY <= farm.getMaxY() was incorrectly written, now corrected to location.getY() <= farm.getMaxY().
Initialization Fix:
Resolved a NullPointerException during configuration loading by adding a check for EntityType.getEntityClass().
Anti-Abuse Protections
Initial Anti-Abuse System:
Added a 5-second cooldown to prevent infinite XP accumulation by repeatedly placing and breaking the same block.
Enhanced Anti-Abuse Logic:
Removed the fixed cooldown, replaced with contextual detection of place/break/place cycles, using a 1-minute history to identify abusive patterns.
Comprehensive Exploit Protection:
Implemented an advanced system analyzing action sequences over 30 minutes, blocking XP during detected cycles, with a 100 XP per 15-minute limit as a safety net.
Ultimate Anti-Abuse System:
Introduced an extremely powerful mechanism with a 30-minute action history, weighted abuse scoring (detecting place/break/place cycles and high action density), automated activity detection (5 seconds of inactivity), and a 200 XP limit over 30 minutes. This blocks all exploits, including redstone and piston-based farms, while preserving legitimate gameplay.
Removed Features
Removed /farm levelup Command:
Replaced with an automatic leveling system based on accumulated XP.