TheEconomy

Economic System, Administrative Shop with NPC and Player Shop for Hytale fully customizable, and secondary currency, Cash.

File Details

EconomySystem-1.0.5-beta.jar

  • R
  • Jan 18, 2026
  • 4.52 MB
  • 537
  • Early Access

File Name

EconomySystem-1.0.5-beta.jar

Supported Versions

  • Early Access
## πŸŽ‰ New Version: 1.0.5-beta

---

## ✨ New Features

### 🎨 Color Code System (Minecraft-like)
- βœ… Complete Minecraft-like color code system implemented
- βœ… Support for 16 basic colors (`&0` to `&f`)
- βœ… Formatting codes: Bold (`&l`), Italic (`&o`), Reset (`&r`)
- βœ… Alternative support for `§` symbol in addition to `&`
- βœ… Works in: Chat, GUIs, and HUD
- βœ… Automatic color code detection in messages
- βœ… Automatic formatting via `MessageFormatter`

### πŸ“ Translation System Reorganization
- βœ… Translations reorganized into 3 categories:
  - `chat_` - Chat Messages
  - `gui_` - Window Texts (GUIs)
  - `hud_` - HUD Texts
- βœ… Automatic migration system for old translation files
- βœ… Automatic backup (.backup) before migration
- βœ… Full support in all languages (PT, EN, ES, RU)

### πŸ–₯️ HUD Improvements
- βœ… Added shop status in HUD (Open/Closed)
- βœ… Configurable default colors in HUD:
  - Main labels: `&l&6` (Bold Gold)
  - Shop Open: `&a` (Green)
  - Shop Closed: `&c` (Red)
  - Gains: `&a` (Green) with bold on value
- βœ… Color code support in HUD
- βœ… Update system improvements (maximum 2 times per second)
- βœ… Performance optimization in HUD updates

### 🐲 Monster Kill Rewards System
- βœ… Individual configuration system per monster
- βœ… Each monster can have its own reward configured
- βœ… Configuration via `MonsterRewards` in `EconomyConfig`
- βœ… Support for `MonsterRewardEntry` for structured configuration
- βœ… Optional debug logs to identify monster IDs
- βœ… Pre-configured default monsters: skeleton_fighter, crawler_void, rabbit, cow, sheep, lamb, calf, tetrabird

### πŸ”Œ Public API - openShop() Method
- βœ… New `openShop(Player player)` method in public API
- βœ… Opens administrative shop programmatically
- βœ… Automatic check if shop is enabled
- βœ… Returns `true` if successful, `false` otherwise
- βœ… Asynchronous execution on world thread
- βœ… Error handling with logs

### πŸ—„οΈ MySQL Support
- βœ… Complete MySQL integration for data storage
- βœ… Configuration via `EconomyConfig`:
  - `EnableMySQL` - Enable/disable MySQL
  - `MySQLHost` - MySQL server host
  - `MySQLPort` - MySQL port
  - `MySQLUser` - MySQL username
  - `MySQLPassword` - MySQL password
  - `MySQLDatabaseName` - Database name
  - `MySQLTableName` - Balances table
  - `MySQLAdminShopTableName` - Admin shop table
  - `MySQLPlayerShopTableName` - Player shops table
- βœ… Automatic table creation on first connection
- βœ… Automatic migration between JSON and MySQL
- βœ… Thread-safe operations
- βœ… Connection pooling and automatic management
- βœ… Ideal for large servers

---

## πŸ”§ Improvements

### Message System
- βœ… `MessageFormatter` integration in all messages
- βœ… Automatic color code detection
- βœ… Support for clickable URLs with automatic formatting
- βœ… Better formatting of messages with multiple colors

### Performance
- βœ… Individual counter system per player for HUD
- βœ… Reduction of unnecessary console logs
- βœ… HUD rebuild system improvements (5 second cooldown)

### Configuration
- βœ… Added `EnableHud` option in configuration (default: `true`)
- βœ… Better organization of configuration options
- βœ… Enhanced configuration validation

### Documentation
- βœ… Updated public API documentation
- βœ… API usage examples

---

## πŸ› Bug Fixes

- βœ… Fixed excessive HUD rebuild issue
- βœ… Fixed balance change detection for notifications