Skip to content

Economy v1.1.2

Latest

Choose a tag to compare

@yigit-guven yigit-guven released this 21 Jan 04:00
· 3 commits to main since this release

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 EconomyPlugin to 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-publish plugin into the build lifecycle. The build.gradle now includes a configured publishing block for artifact deployment to remote Maven repositories.

Command & Logic Refinement

  • Improved Player Identity Matching: Updated PayCommand and EcoAdminCommand to utilize getDisplayName() for player identification. This migration increases matching accuracy and ensures consistency with Hytale’s player rendering.
  • Transaction Validation: Implemented a recursive check in the PayCommand logic 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 .gitignore to strictly exclude gradle.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 HytaleUtils are backward compatible but offer significant improvements in error handling during class loading.
  • Artifacts: This release includes -sources.jar and -javadoc.jar to assist developers with local environment debugging and API implementation.

Full Changelog: v1.1.1...v1.1.2