Create a complete, production-ready Minecraft Paper/Spigot plugin (Java, clean modular architecture) implementing a full SkyGen system with custom generators, GenBoosts, and upgrade mechanics.
Core Requirements:
1. Custom Generators (Gens):
- Configurable tiers/levels of generators (e.g., Tier 1 to Tier 10+) defined in `generators.yml` (block type, drop item, drop interval in ticks/seconds, sell value, custom display name, lore, and custom model data / NBT / PDC tags).
- Players can place generators on their island/plot/allowed area, inspect them, pick them up cleanly without item duplication, and upgrade them.
- Persist placed generators across server restarts using chunk/location data or a dedicated storage file/database (`generators.json` or SQLite) with safe async/sync handling and no lag spikes.
2. Generator Upgrades:
- Allow upgrading an individual placed generator to the next tier (via GUI or shift/right-click interaction), checking economy balance or required items/tokens, updating block type, hologram/actionbar/GUI info if applicable, and playing sound/particle feedback.
- Include an optional "Upgrade All" feature for players who want to upgrade all owned/placed generators of a lower tier at once if they have enough funds.
3. GenBoosts (Global & Personal):
- Support both Global GenBoosts (server-wide multipliers) and Personal GenBoosts (per-player multipliers), stacking cleanly or following clear configurable rules.
- GenBoosts should affect generator speed (faster drop intervals) and/or drop value/sell multiplier, with live remaining time tracking (e.g., ActionBar, BossBar, or GUI status).
- Admin commands to start, stop, or extend global/personal GenBoosts with duration and multiplier arguments.
4. Economy, Selling & GUIs:
- Integrate with Vault for economy (with a clean fallback/mock interface if Vault is not present during testing) and support auto-sell / sell GUI / `/sell` or generator drop selling.
- Provide clean, intuitive Inventory GUIs for:
* Generator info & single generator upgrade menu
* GenBoosts status & active multipliers menu
* Admin management / giving generator items & boosts
5. Configuration, Commands & Technical Quality:
- Well-commented `config.yml`, `generators.yml`, and `messages.yml` with color code (`&` and hex) support.
- Commands with tab-completion and permissions: `/gen`, `/genboost`, `/genshop` or `/genadmin` (clearly documented).
- Thread-safe task scheduling (Folia/Paper friendly where appropriate, avoiding heavy sync loops over all chunks), proper event cancellation/protection against pistons, explosions, or unauthorized griefing, and zero deprecated API issues on modern Paper (1.20.4–1.21.x).
Deliverables:
- Project structure (`pom.xml` or `build.gradle.kts`, `plugin.yml`, packages, and classes).
- Full working code for main plugin class, generator manager, GenBoost manager, storage, listeners, GUIs, and commands.
- Default configuration files (`config.yml`, `generators.yml`, `messages.yml`).
minecraftspigot-java0 views