naruto04352

Create a premium, production-ready Minecraft Economy plugin named "NovaEconomy" for Paper, Spigot, and Purpur servers.

Requirements:

  • Language: Java
  • Java Version: Java 21 ONLY
  • Build Tool: Gradle (Kotlin DSL)
  • Minecraft Version: 1.21.4+ (latest Paper API)
  • Package: com.novaeconomy
  • Follow clean OOP architecture.
  • Use asynchronous database operations.
  • Use Adventure API for all messages.
  • Support PlaceholderAPI, Vault, LuckPerms, MiniMessage, and Folia compatibility.
  • Include full source code with comments.

Core Features:

  • Player balances
  • /balance (/bal)
  • /pay
  • /eco give
  • /eco take
  • /eco set
  • /eco reset
  • /eco top
  • /baltop
  • /withdraw
  • /deposit
  • Offline player support
  • Decimal currency support
  • Configurable currency symbol and name
  • Balance formatting (1K, 1M, 1B, etc.)
  • Transaction history
  • Daily rewards
  • Interest system
  • Salary system
  • Taxes
  • Bank accounts
  • Shared bank accounts
  • Player wallets
  • Auto save
  • Backup system

Admin Features:

  • Economy audit logs
  • Rollback transactions
  • Economy statistics
  • Database repair
  • Reload command
  • Maintenance mode
  • Blacklist players
  • Freeze balances
  • Custom permissions

Database:

Support:

  • SQLite
  • MySQL
  • MariaDB
  • PostgreSQL

Use HikariCP connection pooling.

API:

Create a public developer API allowing other plugins to:

  • Get balance
  • Set balance
  • Deposit
  • Withdraw
  • Transfer money
  • Listen to economy events

Events:

  • BalanceChangeEvent
  • MoneyPayEvent
  • MoneyDepositEvent
  • MoneyWithdrawEvent
  • BankCreateEvent

INVENTORY GUI:

Create inventory GUIs for:

  • Bank
  • Transaction History
  • Daily Rewards
  • Economy Admin Panel

Configuration:

Generate:

  • config.yml
  • messages.yml
  • database.yml
  • rewards.yml
  • interest.yml
  • taxes.yml
  • INVENTORY GUI.yml

Messages:

  • Fully customizable
  • MiniMessage support
  • Hex color support
  • PlaceholderAPI support

Performance:

  • Async database operations
  • Thread-safe cache
  • Scheduled auto-save
  • Memory optimized
  • Supports 500+ players without lag

Permissions:

Create detailed permission nodes for every command and admin feature.

Tab Completion:

Implement intelligent command suggestions.

Security:

  • Prevent negative balances (optional)
  • Anti-duplication protection
  • Transaction validation
  • SQL injection protection
  • Permission validation
  • Audit logging

Project Structure:

  • commands/
  • managers/
  • database/
  • INVENTORY GUI/
  • models/
  • api/
  • events/
  • listeners/
  • placeholders/
  • utils/
  • tasks/
  • config/

Documentation:

Include:

  • README.md
  • Installation guide
  • Developer API documentation
  • Permission list
  • Commands list

Code Quality:

  • JavaDocs
  • Clean architecture
  • SOLID principles
  • Dependency Injection where appropriate
  • Proper exception handling
  • Logging system
  • Unit-test-ready structure

Deliver a complete Gradle project that compiles successfully using Java 21 with no placeholder code or TODOs. Ensure all commands, GUIs, database integrations, API, and configurations are fully implemented and production-ready.

Kodari AI
KodariJul 3 at 1:06 pm 1

I’ll build NovaEconomy — a complete, production-ready economy plugin.

NovaEconomy
A premium economy plugin for Paper 1.21.4+ with full async database support (SQLite/MySQL/MariaDB/PostgreSQL), Vault and PlaceholderAPI integration, Adventure/MiniMessage messaging, comprehensive inventory GUIs, bank accounts, daily rewards, interest, salary, and tax systems. Features complete developer API, audit logging, backup system, and thread-safe caching supporting 500+ concurrent players.

Starting with the build system and configuration files

Let me plan the architecture first, then create all files systematically.

Key design decisions:

  • EconomyManager as the central singleton orchestrating all operations

  • DatabaseManager abstract with SQLite/MySQL/MariaDB/PostgreSQL implementations

  • NovaEconomyAPI interface for developers, implemented by EconomyManager

  • CacheManager handling thread-safe concurrent maps

  • All managers follow DI via the main plugin class

Starting with build system and resources:

NovaEconomy
A premium economy plugin for Paper 1.21.4+ with full async database support (SQLite/MySQL/MariaDB/PostgreSQL), Vault and PlaceholderAPI integration, Adventure/MiniMessage messaging, comprehensive inventory GUIs, bank accounts, daily rewards, interest, salary, and tax systems. Features complete developer API, audit logging, backup system, and thread-safe caching supporting 500+ concurrent players.
naruto04352

complete this

Kodari AI
KodariJul 3 at 1:56 pm 1

Now creating all Java source files. Starting with models and core infrastructure:

Kodari can make mistakes. Review important code before using.
Files
NovaEconomy
Code
11 730
NovaEconomy/src/main/resources/config.yml
# NovaEconomy Configuration
# Version: 1.0.0

# Currency settings
currency:
  symbol: "$"
  name: "dollar"
  name-plural: "dollars"
  decimal-places: 2
  format:
    enabled: true
    # Format: thousand, million, billion, trillion, quadrillion
    thousand: "K"
    million: "M"
    billion: "B"
    trillion: "T"
    quadrillion: "Q"

# Starting balance for new players
starting-balance: 100.0

# Maximum balance a player can have
max-balance: 999999999999999.99

# Minimum payment amount
minimum-payment: 0.01

# Withdraw settings
withdraw:
  enabled: true
  min-amount: 1.0
  max-amount: 10000.0
  item:
    material: "SUNFLOWER"
    name: "<gradient:gold:yellow>${amount}</gradient>"
    lore:
      - "<gray>Redeemable currency note"
      - "<gray>Value: <green>${amount}</green>"
      - ""
      - "<yellow>Right-click to redeem</yellow>"

# Deposit settings
deposit:
  enabled: true
  min-amount: 1.0
  max-amount: 10000.0

# Transaction history
history:
  enabled: true
  max-entries-per-player: 1000
  retention-days: 90

# Auto-save settings
auto-save:
  enabled: true
  interval-seconds: 300

# Backup settings
backup:
  enabled: true
  interval-minutes: 60
  max-backups: 24
  backup-directory: "backups"

# Economy settings
economy:
  negative-balances: false
  offline-support: true
  decimal-support: true

# Maintenance mode
maintenance:
  enabled: false
  kick-message: "<red>Economy system is under maintenance. Please try again later.</red>"

# Blacklist
blacklist:
  enabled: true
  players: []

# Freeze
freeze:
  enabled: true
  players: []
  prevent-transactions: true

# Logging
logging:
  enabled: true
  level: "INFO" # DEBUG, INFO, WARN, ERROR
  file: "logs/economy.log"

# Performance
performance:
  thread-pool-size: 4
  cache-expire-minutes: 30
  cache-max-size: 10000