Release Notes: Economy Mod v1.1.2
Summary
Version 1.1.2 focuses on hardening the plugin's core infrastructure, improving the reliability of the reflection-based component registration system, and expanding deployment capabilities through Maven integration. This update also addresses critical logic checks within player-to-player transactions to ensure data integrity and prevent exploit vectors.
Technical Changes
Core & Framework Enhancements
- Robust Component Registration: Refactored
EconomyPluginto handle diverse constructor signatures during component registration. This ensures that the dependency injection layer remains stable even when external modules implement non-standard initialization patterns. - HytaleUtils Reflection Optimization: Optimized internal reflection methods within
HytaleUtils. These improvements provide better compatibility across different runtime environments and reduce the overhead of dynamic method invocation. - Maven Publishing Integration: Integrated the
maven-publishplugin into the build lifecycle. Thebuild.gradlenow includes a configured publishing block for artifact deployment to remote Maven repositories.
Command & Logic Refinement
- Improved Player Identity Matching: Updated
PayCommandandEcoAdminCommandto utilizegetDisplayName()for player identification. This migration increases matching accuracy and ensures consistency with Hytale’s player rendering. - Transaction Validation: Implemented a recursive check in the
PayCommandlogic to prevent self-payment. This eliminates a potential loop in the economy ledger where players could initiate transactions with themselves.
Security & Maintenance
- Credential Management: Updated
.gitignoreto strictly excludegradle.properties. This follows security best practices to prevent the accidental exposure of sensitive repository credentials and signing keys. - Version Increment: Systematic bump of project versioning to 1.1.2.
Developer Notes
Important
Migration: For developers using this mod as a dependency, the artifacts are now available via the newly implemented Maven publishing pipeline.
- Stability: The reflection changes in
HytaleUtilsare backward compatible but offer significant improvements in error handling during class loading. - Artifacts: This release includes
-sources.jarand-javadoc.jarto assist developers with local environment debugging and API implementation.
Full Changelog: v1.1.1...v1.1.2