https://studio.elyonhost.net/eneconomy/api
DOCS
ENEconomy is a lightweight and efficient mod designed to implement a complete economic system on any Hytale server. It offers a robust solution for managing your server's finances with intuitive commands and support for both local storage and MySQL.
✨ Key Features
💰 Complete Financial System
Balance Management: Players can check their balance at any time
Player-to-Player Transfers: Secure P2P payment system
Flexible Administration: Comprehensive administrator tools
Dual Storage: Supports MySQL or local JSON files
🎯 Available Commands
Player Commands:
/balance - Check your current balance
/pay <player> <amount> - Send money to other players
/baltop [page] - View the ranking of richest players
Administration Commands:
/eco help - Displays all available commands
/eco give <player> <amount> - Gives money to a player
/eco set <player> <amount> - Sets a player's balance
/eco reset <player> - Resets the balance to its default value
/eco stats - Displays server statistics (total money in circulation, transfers, payments)
/eco reload - Reloads the mod configuration
🔧 Customizable Configuration
The config.yml file allows you to fully adjust the economic system:
# Basic Configuration
default_money: 500 # Starting money for new players
currency_symbol: "$" # Currency symbol
currency_name: "Dollars" # Currency name
decimal_places: 2 # Allowed decimal places
# Database
mysql: true # True for MySQL, false for JSON
db-name: "s58_asad" # Database name
db-endpoint: "104.243.47.43:3306" # MySQL server IP address and port
db-username: "u58_YCPlXnYhY6" # Database username
db-password: "2.8qkG71KAB..." # Database password
# Performance
baltop_refresh_seconds: 300 # Ranking refresh time (in seconds)
Public API for Developers
ENEconomy exposes a complete API for other mods to integrate with:
Available Functions:
View player balances
Modify balances (add/subtract funds)
Check if a player has enough funds
Listen to real-time economic events
Event System:
EconomyTransactionEvent - Triggered on any transaction
BalanceChangeEvent - Triggered when a player's balance changes
PaymentEvent - Specific to transactions with /pay
💾 Data Storage
MySQL (mysql: true): Ideal for large servers, allows synchronization between multiple instances.
Local JSON (mysql: false): Perfect for small servers, stores data in players.json.

