Y

Develop an advanced plugin that prompts cracked or offline players to complete a CAPTCHA challenge when they attempt to join the server. The plugin should teleport these players to the void, display a configurable CAPTCHA interface, and only allow access to the server upon successful verification. Include options for customizable CAPTCHA types, cooldown times for repeated attempts, and logging of verification attempts for moderation purposes.

๐Ÿ“Ž 2 files 29,359 chars
๐Ÿ“„
enhanced_server_prompt.md
md 611 lines
โ–ถ
# ๐Ÿ† ULTIMATE PREMIUM LIFESTEAL SERVER BUILD PROMPT
## Paper 1.21.1 โ€” Zero To Production โ€” Full Custom Stack

---

## โš™๏ธ IDENTITY & MINDSET

You are a **SENIOR MINECRAFT SERVER ARCHITECT**, **EXPERT JAVA PLUGIN DEVELOPER**, and **PREMIUM SERVER DESIGNER** with experience building servers at the level of PikaNetwork and VeltPvP.

You are building ONE highly focused, ultra-polished **Lifesteal server** with a premium Lobby. This is **NOT** a network. This is NOT quantity โ€” it is **pure quality**. Every single system must be the best it can possibly be.

**You are also a Java 21 plugin developer.** If no free plugin exists that perfectly fits a requirement, you will **write the custom plugin code from scratch** and provide the full Java source code, `plugin.yml`, `pom.xml` (Maven), and build instructions. Never compromise quality by picking a mediocre plugin when a custom one would serve better.

---

## ๐Ÿ”’ ABSOLUTE RULES โ€” NEVER BREAK THESE

- ONLY free plugins (Modrinth, Hangar, SpigotMC free section) OR custom-coded plugins you write yourself
- ONLY plugins actively updated in 2024 or 2025 โ€” if outdated, WRITE A REPLACEMENT
- ONLY compatible with Paper 1.21.1 and Java 21
- NO paid plugins โ€” ZERO exceptions
- NO BungeeCord, NO Velocity, NO proxy of any kind
- NO summarizing, NO skipping, NO "configure as needed"
- ALL configs are COPY-PASTE READY with real values filled in
- ALL commands are EXACT โ€” not templates
- When a custom plugin is needed, provide COMPLETE Java source code
- X-Ray must be **TECHNICALLY IMPOSSIBLE** โ€” not just flagged, actually impossible
- Hacks must be actively prevented at the packet and server level
- Every piece of code, config, and command must be production-ready

---

## ๐Ÿ–ฅ๏ธ SERVER SPECS

| Property | Value |
|---|---|
| Server Software | Paper 1.21.1 |
| Java | 21 (OpenJDK or GraalVM) |
| RAM | 4GB |
| OS | Linux (Ubuntu 22.04 LTS) |
| Target TPS | Stable 20 TPS with 100 players |
| Crossplay | Java + Bedrock via Geyser + Floodgate |
| Worlds | lobby, lifesteal |
| Focus | ONE amazing Lifesteal experience |

---

## ๐ŸŒ WORLD STRUCTURE

Only two worlds:

| World | Purpose |
|---|---|
| `lobby` | Default spawn, hub, rank NPCs, crates, cosmetics, leaderboards |
| `lifesteal` | The main game โ€” full Lifesteal SMP mechanics |

No other worlds. No mini-games. No distractions. Perfect execution of two worlds only.

---

## ๐Ÿ‘‘ RANK SYSTEM โ€” COMPLETE SPECIFICATION

### PLAYER RANKS (purchasable, paid)
Each rank comes with a **unique armor set and sword** delivered via a kit command on first claim. Tag color complexity increases per rank โ€” lower ranks get 1-2 colors, higher ranks get more gradient stops.

| Rank | Tag Colors | Example Gradient |
|---|---|---|
| Member | White (1 color) | `[Member]` in pure white |
| Knight | Gray โ†’ White (2 colors) | Subtle gray-to-white gradient |
| Elite | Green โ†’ Lime (2 colors) | Green gradient |
| Champion | Gold โ†’ Yellow (3 colors) | Gold shimmer |
| Titan | Aqua โ†’ Blue (3 colors) | Ocean gradient |
| Legend | Light Purple โ†’ Pink (4 colors) | Purple shimmer |
| Eternal | Red โ†’ Gold โ†’ Yellow (5 colors) | Fire gradient |
| Mythic | Purple โ†’ Pink โ†’ Red (6 colors) | Mystic fire |
| Immortal | Cyan โ†’ Blue โ†’ Purple โ†’ Pink (7 colors) | Aurora borealis |

### STAFF RANKS (assigned, not purchasable)
Each staff rank has MORE colors than the last โ€” culminating in Owner with full animated rainbow.

| Rank | Tag Colors | Style |
|---|---|---|
| Helper | Yellow (1 color) | Clean yellow |
| Jr. Mod | Yellow โ†’ Gold (2 colors) | Warm gradient |
| Moderator | Blue โ†’ Aqua (3 colors) | Cool gradient |
| Admin | Red โ†’ Orange (4 colors) | Warning gradient |
| Manager | Red โ†’ Purple โ†’ Pink (6 colors) | Authority gradient |
| Owner | Red โ†’ Orange โ†’ Gold โ†’ Green โ†’ Aqua โ†’ Blue โ†’ Purple โ†’ Pink (8 colors, animated cycling) | Full animated rainbow |

For EACH rank provide:
- EXACT LuckPerms commands (full inheritance chain)
- RGB MiniMessage prefix with correct gradient stops
- Suffix (rank-appropriate)
- Chat color
- Tab color
- Nametag color via TAB plugin
- Full permission node list
- Kit contents (for player ranks): exact armor enchantments, sword enchantments, lore lines, item names with color

---

## ๐Ÿ—ก๏ธ LIFESTEAL PLUGIN โ€” CUSTOM CODED

Since no free plugin fully captures a premium Lifesteal experience, **write a complete custom Paper plugin** called `LifeStealCore` with:

### Core Mechanics
- Starting hearts: 10 (5 hearts = 10 HP)
- Kill a player โ†’ steal 1 heart from them, gain 1 heart yourself
- Maximum hearts: 20 (10 hearts = 20 HP)
- Minimum hearts: 0 (player is eliminated โ€” kicked from Lifesteal world, teleported to lobby with a death screen)
- Hearts are stored in a MySQL database (provide full schema and connection config)
- Hearts persist across restarts
- Hearts displayed above player head (via hologram or display entity โ€” use Block Display entities, no external plugin needed)
- Hearts shown in scoreboard and tab list via PlaceholderAPI expansion (write the expansion too)

### Heart Items
- Craft or earn a **Heart Item** (custom item: red heart texture via custom model data or `RED_DYE` with lore and name)
- Right-click Heart Item to consume it and gain +1 heart (up to max cap)
- Heart items drop from killed players (configurable drop chance, default 30%)
- Heart items are tradeable and auctionable

### Commands (ALL custom-coded, no external plugins needed for core)
| Command | Function |
|---|---|
| `/hearts` | Show your own heart count with a beautiful INVENTORY GUI |
| `/hearts ` | View another player's hearts |
| `/heartadmin give  ` | Admin: give hearts |
| `/heartadmin take  ` | Admin: remove hearts |
| `/heartadmin set  ` | Admin: set hearts exactly |
| `/heartadmin reset ` | Admin: reset to 10 hearts |
| `/revive ` | Spend X hearts to revive an eliminated player (configurable cost) |
| `/eliminated` | List all currently eliminated players |
| `/lifesteal top` | Leaderboard: top players by heart count |
| `/lifesteal stats` | Your own stats: kills, deaths, hearts stolen, hearts lost |

### Elimination System
- On death with 0 hearts remaining: custom death screen overlay, dramatic sound, title message
- Player inventory is dropped at death location
- Player is teleported to lobby world
- Player receives "Eliminated" status โ€” cannot re-enter lifesteal world without being revived
- Eliminated players see a INVENTORY GUI in lobby with revival options
- Revive by: another player using `/revive`, spending their own hearts, OR purchasing a Revival Token from shop

### Anti-Abuse
- Kill cooldown: same player cannot have hearts stolen more than once per 30 minutes
- Logout protection: logging out in combat results in auto-kill
- Void protection: falling in void counts as death and costs hearts
- No hearts stolen from NPCs or pets

---

## ๐Ÿšซ X-RAY & HACK PREVENTION โ€” MAKE IT TECHNICALLY IMPOSSIBLE

### X-Ray Prevention (Anti-Ore-Exposure System)
**Do NOT just use an anticheat flag.** Make X-ray provide zero advantage:

1. **Orebfuscator** (or Paper's built-in anti-xray): Use Paper's built-in `anti-xray` in `paper-world.yml` โ€” provide the EXACT config for `engine-mode: 2` with full hidden-block lists for 1.21.1
2. **Engine Mode 2 config**: Replace ALL ores and hidden blocks with fake random ores in the packet sent to clients โ€” X-ray sees fake ores everywhere, making it useless
3. **Chunk packet obfuscation**: Only reveal real ore positions when the block is adjacent to air (visible naturally) โ€” provide exact YAML
4. **Seed hiding**: Set a fixed random seed per-player per-session in server.properties โ€” provide exact setting

### Hack Prevention (Multi-Layer)
1. **Packet-level**: Grim Anticheat (best free option, actively maintained 2025) โ€” provide FULL config tuned for Lifesteal PvP with zero false positives on legit players and zero tolerance for cheaters
2. **Server-level**: Paper exploit patches โ€” provide complete `paper-global.yml` with all exploit patches enabled
3. **Movement validation**: Grim handles this โ€” tune the flight, speed, reach, and combat checks precisely
4. **Combat logging prevention**: Custom CombatLog module in LifeStealCore โ€” tag players in combat, auto-kill on disconnect
5. **Inventory hacks**: Paper's built-in inventory validation + Grim's inventory checks
6. **Packet spam**: Paper's built-in rate limiting + `paper-global.yml` packet limiter settings

Provide the COMPLETE Grim config tuned specifically for:
- Lifesteal SMP PvP (no false flags on 1.21.1 legitimate PvP)
- Lobby (relaxed movement, no combat)
- Staff bypass permissions

---

## ๐Ÿ’ฐ ECONOMY SYSTEM โ€” CUSTOM CODED

Write a custom economy plugin `EconomyCore` (or extend LifeStealCore) with:

### Dual Currency
- **Coins** โ€” main currency, earned by playing, selling items, killing players
- **Gems** โ€” premium currency, earned by voting, events, daily login

### Commands
| Command | Description |
|---|---|
| `/balance` or `/bal` | Show your Coins and Gems |
| `/balance ` | Check another player's balance |
| `/pay  ` | Send Coins to another player |
| `/paygems  ` | Send Gems to another player |
| `/baltop` | Top 10 richest players (Coins) |
| `/sell hand` | Sell item in hand at shop price |
| `/sell all` | Sell all sellable items in inventory |
| `/sell inventory` | Same as sell all with confirmation INVENTORY GUI |
| `/shop` | Open the main shop INVENTORY GUI |
| `/shop ` | Open specific shop category |
| `/auction` or `/ah` | Open auction house INVENTORY GUI |
| `/auction sell ` | List held item for auction |
| `/auction cancel` | Cancel your listing |
| `/auction search ` | Search auction listings |
| `/coinshop` | Coin-based cosmetic/item shop |
| `/gemshop` | Gem-based premium shop |
| `/daily` | Claim daily coin reward |
| `/vote` | Links to voting sites, shows gem reward |

### Sell Prices (provide full default sell price list for all relevant Lifesteal drops)
### Auction House Rules
- Listing fee: 5% of listing price in Coins (sink)
- Max listings per player: 5 (VIP+: 10, Legend+: unlimited)
- Listing duration: 48 hours
- Expired listings return to player via `/auction expired`
- All data in MySQL

### Economy Balance
- Coin earn rates per activity (killing players, selling, quests, voting)
- Daily limits to prevent inflation
- Gem earn rates (votes only primarily)
- Full inflation sink strategy

---

## ๐Ÿ›’ SHOP SYSTEM โ€” CUSTOM INVENTORY GUI PLUGIN

Write or configure a full shop INVENTORY GUI with categories:
- **Blocks** โ€” building materials priced per stack
- **Food** โ€” all food items
- **Tools & Armor** โ€” base items (not enchanted)
- **Mob Drops** โ€” buy/sell mob loot
- **Farming** โ€” seeds, crops, dyes
- **Potions** โ€” ingredients and potions
- **Lifesteal** โ€” Heart items, Revival Tokens

Each item in shop: buy price, sell price, stock (unlimited for basic items), lore description, animated INVENTORY GUI borders.

---

## ๐Ÿ“‹ COMPLETE SECTION LIST โ€” ANSWER EACH IN FULL

---

### SECTION 1 โ€” PAPER OPTIMIZATION

- EXACT Java 21 startup flags (Aikar flags tuned for 4GB)
- Complete `paper-global.yml` (all performance + security settings)
- Complete `paper-world-defaults.yml`
- Complete `spigot.yml`
- Complete `bukkit.yml`
- Complete `server.properties`
- Complete Paper anti-xray config (Engine Mode 2, all hidden blocks for 1.21.1)
- Entity limits per world
- Mob spawning optimization
- Chunk loading (async, view distance 6 for lifesteal, 4 for lobby)
- Hopper optimization
- Redstone limits
- Anti-lag settings
- Explanation: Paper vs Purpur vs Pufferfish โ€” which and exactly why for this use case

**Goal: 20 TPS stable with 100 players on 4GB RAM.**

---

### SECTION 2 โ€” FULL PLUGIN STACK

For each plugin:
1. Plugin name + exact version
2. Download URL (direct link)
3. Why this over alternatives
4. Dependencies
5. Paper 1.21.1 compatibility confirmation

Required categories:
- LuckPerms (permissions)
- Vault (economy bridge)
- PlaceholderAPI + all required expansions (list every expansion needed)
- TAB (tablist + scoreboard + nametags)
- EssentialsX (or alternative โ€” justify choice)
- Geyser + Floodgate (crossplay)
- ViaVersion + ViaBackwards
- SkinRestorer
- Grim Anticheat
- AntiBot (login protection)
- WorldGuard + WorldEdit
- Multiverse-Core
- CoreProtect (logging + rollback)
- LibertyBans (moderation)
- Citizens (NPCs) or alternative that works on Paper 1.21.1
- DecentHolograms or alternative
- ExcellentCrates or alternative
- DiscordSRV
- CMI or custom for: vanish, staff mode, freeze, /back, /home, /tp
- AdvancedServerList (animated MOTD)
- Maintenance mode plugin
- BlueMap (optional, performance note)
- Any additional plugins you recommend for a premium feel

Mark clearly which plugins need custom companion code written.

---

### SECTION 3 โ€” INSTALLATION ORDER

Exact numbered steps from a blank Linux VPS to a running server:
1. Java 21 installation commands
2. Paper jar download command (exact URL or papermc.io API command)
3. First run to generate files
4. Startup script creation (exact `start.sh` content)
5. Plugin installation order with dependency reasons
6. Config editing order (what to edit before each start)
7. First in-game setup commands
8. Nothing skipped โ€” every step numbered

---

### SECTION 4 โ€” WORLD SETUP

- EXACT Multiverse-Core commands to create `lobby` and `lifesteal`
- EXACT gamerules for each world (every gamerule, every value)
- EXACT spawn point setup
- Per-world inventory (separate inventories) โ€” plugin and exact config
- Lobby as forced spawn for all new players
- On death in lifesteal with hearts remaining: respawn in lifesteal at spawn
- On elimination (0 hearts): teleport to lobby, show elimination screen
- WorldGuard global flags per world (lobby: no pvp, no damage, no block break; lifesteal: pvp on, define safe zones)

---

### SECTION 5 โ€” RANK SYSTEM

For EVERY rank (player and staff):
- EXACT LuckPerms commands (create group, set prefix with full MiniMessage RGB gradient, set permissions, set inheritance)
- Full permission list per rank (what each rank can and cannot do)
- Kit contents for player ranks (item names, enchants, lore, custom model data if applicable)
- Kit claim command and cooldown (one-time claim per rank upgrade)
- Prefix gradient MiniMessage strings (all colors specified, no placeholders)

---

### SECTION 6 โ€” TAB + SCOREBOARD

Full copy-paste TAB plugin config:

**Tablist:**
- Animated RGB gradient header cycling through colors (provide full animation frames)
- Footer: server IP, player count, TPS, website
- Player names colored by rank (per-group color)
- Ping indicator with colored icons
- Staff highlighted differently

**Scoreboard (right side):**
- Animated gradient title
- Rotating lines (provide all lines, all placeholders, exact animation timing):
  - Player name
  - Rank
  - Coins balance
  - Gems balance
  - Hearts (from custom PlaceholderAPI expansion)
  - Kills / Deaths / KDR
  - Current world (Lobby or Lifesteal)
  - Vote streak
  - Server website
  - Current server time

---

### SECTION 7 โ€” CHAT SYSTEM

Full chat config (EssentialsX chat or custom):
- RGB gradient chat format per rank (all MiniMessage strings)
- Hover: rank, playtime, balance, hearts
- Click player name: suggest `/msg `
- Anti-spam (exact thresholds)
- Anti-advertising (exact regex block list)
- Staff chat channel (`/sc` or `/staffchat`)
- `@username` mention highlight
- Join/quit messages with RGB animation per rank
- All configs copy-paste ready

---

### SECTION 8 โ€” NPC SYSTEM

Lobby NPCs (using Citizens or best available alternative for Paper 1.21.1):

NPCs to create:
1. **Lifesteal Portal** โ€” teleport to lifesteal world (confirmation INVENTORY GUI)
2. **Crates NPC** โ€” open crate selection INVENTORY GUI
3. **Shop NPC** โ€” open main shop INVENTORY GUI
4. **Ranks NPC** โ€” show rank upgrade INVENTORY GUI / buycraft link INVENTORY GUI
5. **Auction House NPC** โ€” open /ah
6. **Leaderboards NPC** โ€” show top hearts, top kills holograms
7. **Daily Rewards NPC** โ€” open daily login INVENTORY GUI
8. **Revive NPC** โ€” show eliminated players list + revive options

For each NPC:
- Exact Citizens creation commands
- Skin assignment (provide the exact skin username to use, or method to set custom skin)
- Hologram above NPC (animated, RGB, shows relevant placeholder like player count in that world)
- Click action (exact Citizens trait command or Citizens-Actions config)
- Particle effect type and config
- Sound on click

---

### SECTION 9 โ€” LOBBY ZONES (WorldGuard)

**Crate Area:**
- WorldGuard region: `crate-area`
- No PvP, no damage, no block break/place
- EXACT region create commands
- EXACT flag commands
- Crate types: Common, Vote, Rare, Epic, Legendary, Seasonal
- FULL ExcellentCrates (or chosen plugin) config for all 6 crates
- Balanced reward table for each crate (specific items, quantities, probabilities โ€” must add to 100%)
- Key system: how keys are obtained, distributed, named
- Holograms above each crate (animated, shows crate name + "Click to Open" + key type needed)
- Particle effects per crate type (specific particle, count, radius)

**Spawn Safe Zone:**
- No PvP, no hunger, no damage within 30 blocks of lobby spawn
- EXACT WorldGuard region and flags

---

### SECTION 10 โ€” ECONOMY DESIGN

Full economy design document:
- Coin earn rates table (per action: kill, sell, daily, quest, vote bonus)
- Gem earn rates table (per vote site, per event)
- Spend sinks table (shop prices, crate key costs, auction fees, revival token cost)
- Anti-AFK abuse measures
- Daily caps per currency
- Economy balance projection (coins in vs out per active player per day)
- Full sell price list for all Lifesteal-relevant items (ores, mob drops, crops)

---

### SECTION 11 โ€” ANTICHEAT (GRIM)

- EXACT Grim installation steps
- EXACT Grim config for lobby (relaxed, no false flags)
- EXACT Grim config for lifesteal (strict PvP checks, tight reach/speed/flight)
- Staff bypass permission nodes
- Alert configuration (notify staff in `/sc` on violations)
- Auto-punishment thresholds (alert โ†’ kick โ†’ tempban escalation)
- Performance impact notes and mitigation
- Testing steps to verify false positive rate

---

### SECTION 12 โ€” CROSSPLAY (GEYSER + FLOODGATE)

- EXACT installation on Paper (standalone Geyser, not proxy mode)
- EXACT `config.yml` for Geyser
- EXACT `config.yml` for Floodgate
- Bedrock port setup (UDP 19132)
- Firewall commands for Bedrock port (ufw)
- Skin handling for Bedrock players
- INVENTORY GUI/menu compatibility for Bedrock (what works, what doesn't, workarounds)
- Known limitations and how to communicate them to Bedrock players
- Performance impact

---

### SECTION 13 โ€” SECURITY

- **Anti-bot**: Which plugin, exact config, EXACT challenge settings
- **Op security**: Remove all ops from ops.json, no player should ever have /op โ€” exact commands and paper config to enforce
- **Console security**: Restrict RCON, no remote console unless VPN-secured
- **Permission audit**: How to verify no rank has unintended permissions (LuckPerms verbose)
- **CoreProtect**: Exact install, exact config, what it logs in lifesteal world
- **Exploit prevention**: All Paper patches enabled โ€” exact config lines
- **Backup strategy**: Free automated backup script (`rsync` + `cron`) โ€” exact script content, exact cron entry
- **Firewall**: UFW rules โ€” exact commands (allow 25565 TCP, 19132 UDP, deny all else)
- **Fail2ban**: Setup for SSH brute force โ€” exact config

---

### SECTION 14 โ€” STAFF TOOLS

- **Vanish**: Plugin choice + exact config + exact permission nodes
- **Staff Mode**: Plugin or custom โ€” toggled with `/staffmode`, gives staff items (compass, book, etc.)
- **Freeze**: `/freeze ` โ€” prevents movement, tells player they are frozen
- **LibertyBans**: Full install + exact config + punishment templates for: warn, mute (1h/24h/7d/perm), kick, ban (1h/24h/7d/perm), IP-ban
- **Rollback**: CoreProtect rollback commands + exact syntax for common scenarios
- **Report system**: `/report  ` โ†’ notifies online staff in staff chat + logs to file
- **Staff chat**: `/sc ` โ€” only staff ranks can see
- **Moderation log**: Where to find all punishment history, how to export
- **AntiLog**: Combat logging prevention (part of LifeStealCore custom plugin)

---

### SECTION 15 โ€” PLAYER RETENTION

- **Daily Login Rewards**: Day streak system โ€” INVENTORY GUI, coin/gem rewards per day, streak reset on miss, bonus at streak milestones (7, 30, 100 days) โ€” plugin or custom code
- **Vote Rewards**: Integration with voting sites (NuVotifier), gem reward per vote, vote streak bonus, vote crate key on vote โ€” exact config
- **Quest System**: Daily + weekly quests (typewriter plugin or custom) โ€” provide 10 daily quest examples and 5 weekly quest examples specific to Lifesteal (kill X players, mine X diamonds, earn X coins, etc.)
- **Achievement System**: List 20 Lifesteal-specific achievements with unlock conditions and rewards
- **Leaderboards**: Holograms in lobby showing Top 10 by: hearts, kills, deaths, KDR, playtime, balance โ€” updated every 5 minutes
- **First Join Experience**: Title animation, welcome sound, starter kit (bread + stone sword, lore "Welcome to [ServerName]"), automatic LuckPerms Member group assignment

---

### SECTION 16 โ€” VISUAL POLISH

All copy-paste ready configs:
- **Animated MOTD**: AdvancedServerList config โ€” line 1 animates through gradient colors, line 2 shows player count and description, random tips rotating
- **Join Title**: Per-rank animated title + subtitle, 3 second stay, fade in/out โ€” all MiniMessage strings provided
- **Quit Message**: RGB animated, shows player's rank and playtime
- **Bossbar**: Rotating tips/announcements via plugin โ€” 5 messages cycling every 30 seconds โ€” exact message list
- **Action Bar**: Shows hearts + coins + current world always visible โ€” PlaceholderAPI string + TAB/CMI config
- **Lobby Particles**: Ambient particles in lobby spawn โ€” plugin and exact config (not too heavy, performance-safe)
- **Sound Events**: Exact Bukkit sound names for: join, quit, rank up, crate open, heart steal, elimination, revival

---

### SECTION 17 โ€” CUSTOM PLUGIN CODE

Write complete Java source code for:

**1. `LifeStealCore` Plugin**
- Full Maven project structure (`pom.xml`, `plugin.yml`, all Java classes)
- Heart system (MySQL-backed)
- Kill listener (heart stealing logic)
- Elimination system
- All commands listed in the Lifesteal section above
- PlaceholderAPI expansion (`%lifesteal_hearts%`, `%lifesteal_kills%`, `%lifesteal_deaths%`, `%lifesteal_kdr%`, `%lifesteal_eliminated%`)
- Heart item system
- Combat tag system (combatlog)
- Config.yml with all tunable values

**2. `EconomyCore` Plugin**
- Dual currency (Coins + Gems) with MySQL backend
- Vault integration (Coins = Vault economy)
- All commands listed in the Economy section
- `/sell`, `/sell all`, `/sell hand`, `/sell inventory`
- `/auction` full auction house with INVENTORY GUI
- `/shop` INVENTORY GUI with categories and configurable prices via `shop.yml`
- `/daily` claim system
- PlaceholderAPI expansion (`%economy_coins%`, `%economy_gems%`, `%economy_baltop_<1-10>%`)

**3. `RankKitCore` Plugin** (or integrate into LifeStealCore)
- One-time kit claim per rank
- Kit defined in `kits.yml` per rank name
- Auto-detects player's highest rank from LuckPerms
- `/kit` command โ€” shows INVENTORY GUI with available kits
- `/kit ` โ€” claim that rank's kit if eligible
- Checks if already claimed (MySQL-stored)

Provide for each plugin:
- `pom.xml` (Paper API 1.21.1, Java 21, all dependencies)
- `plugin.yml`
- All `.java` files with full code
- `config.yml` default
- MySQL schema `.sql` file
- How to compile: exact Maven command
- How to install: where to put the `.jar`

---

## ๐Ÿ FINAL SETUP ORDER

From **blank Linux VPS** to **players online** โ€” every step numbered, nothing skipped:

1. VPS prep (update, Java 21 install, user setup, firewall)
2. Paper download and first run
3. EULA acceptance
4. Startup script creation
5. Paper config edits (all files, before any plugin)
6. Plugin installation (in exact dependency order)
7. First startup
8. World creation commands
9. WorldGuard region setup
10. LuckPerms rank setup
11. NPC placement
12. Hologram placement
13. Crate setup
14. Economy configuration
15. Anticheat tuning
16. TAB plugin config
17. Chat config
18. Custom plugin compilation and installation
19. Database setup (MySQL schema)
20. Crossplay (Geyser/Floodgate) setup
21. Security hardening
22. Staff accounts and permissions
23. Final testing checklist (TPS test, join test, PvP test, X-ray test, rank kit test, economy test, auction test)
24. Player-facing announcement template

---

## ๐Ÿ“ OUTPUT FORMAT FOR EVERY SECTION

For each section provide in this exact order:

1. **PURPOSE** โ€” What this section achieves
2. **PLUGINS / CODE USED** โ€” Name, version, download URL, reason chosen
3. **INSTALLATION** โ€” Exact steps with exact commands
4. **CONFIGURATION** โ€” Full copy-paste config files (no placeholders, all real values)
5. **CUSTOM CODE** โ€” If a plugin is custom, full Java source
6. **IN-GAME COMMANDS** โ€” Exact commands in exact order
7. **LUCKPERMS PERMISSIONS** โ€” Exact LP commands for this section
8. **TESTING** โ€” How to verify this section works correctly
9. **COMMON MISTAKES** โ€” What goes wrong and how to prevent it
10. **PERFORMANCE NOTES** โ€” Impact on TPS, how to monitor
11. **ADVANCED TIPS** โ€” Pro-level optimizations specific to this setup

---

**Begin with SECTION 1. Complete every section fully before moving to the next. Never summarize. Never use placeholders. Full production-ready output only.**
๐Ÿ“„
pasted-code-1779327743224.txt
txt 62 lines
โ–ถ
๐Ÿ›ก๏ธ Advanced Server Security Through Smart Verification
Protect your Minecraft server from automated attacks, bot invasions, and malicious connections with this comprehensive security solution. This powerful verification system creates an impenetrable barrier against unwanted intrusions while maintaining a smooth experience for legitimate players.

โœจ Key Features
๐Ÿ”’ Bulletproof Security System

Instant captcha verification upon player connection
Isolated verification environment preventing world interference
Time-limited challenges with configurable difficulty levels
Multi-attempt protection with automatic escalation
๐ŸŽฏ Seamless Player Experience

Visual captcha display through interactive maps
Clean, customizable verification interface
Automatic restoration to original spawn location
No impact on server performance or gameplay
โš™๏ธ Advanced Configuration Options

Fully customizable captcha length and character sets
Adjustable time limits and attempt restrictions
Personalized welcome and kick messages
Extensive security and performance settings
๐Ÿš€ Smart Void Management

Players held in secure falling state during verification
Complete command blocking until verification completion
Spectator mode isolation preventing world interaction
Automatic cleanup and data management
๐Ÿ“Š Administrative Control

Real-time verification statistics and monitoring
Hot-reload configuration without server restart
Comprehensive permission system
Debug logging for troubleshooting
๐ŸŽฎ How It Works
When players join your server, they're immediately transported to a secure verification zone where they cannot interact with your world or other players. A unique captcha code is generated and displayed both in chat and on an interactive map item. Players must enter the correct code within the specified time limit to gain full server access.

Failed attempts are tracked and logged, with automatic kicks after reaching the maximum attempt threshold. The system remembers verified players across sessions, ensuring they won't be challenged repeatedly while maintaining security against new connections.

๐Ÿ› ๏ธ Perfect For
Public Servers seeking protection from bot attacks
Community Servers wanting to maintain member quality
Creative Servers preventing griefing from disposable accounts
Survival Servers blocking automated resource farming
Any Server prioritizing security without sacrificing user experience
๐Ÿ“‹ Technical Requirements
Minecraft Version: 1.20
Server Software: Bukkit, Spigot, Paper compatible
๐Ÿ”ง Installation & Setup
Download and place the plugin in your server's plugins folder
Restart your server to generate configuration files
Customize settings in config.yml to match your server's needs
Grant appropriate permissions to staff members
Your server is now protected!
๐Ÿ’ก Why Choose This Solution?
Unlike basic verification systems that rely on simple chat commands or external services, this comprehensive approach provides multiple layers of protection. The innovative void-based isolation ensures complete security while the visual captcha system offers an engaging user experience that legitimate players can easily complete.

The extensive configuration options mean you can fine-tune every aspect of the verification process to match your server's unique requirements. Whether you need strict security for a competitive environment or a more relaxed approach for a community server, this system adapts to your needs.

Transform your server security today - join thousands of server owners who trust this solution to keep their communities safe while welcoming genuine players with open arms.

Kodari AI
KodariMay 21 at 1:46 am 32,457 (v2)

Iโ€™ll build a comprehensive CAPTCHA verification plugin for cracked/offline servers.

Plan:

  • Core: CaptchaPlugin main class with GUIManager, config, and logging

  • CaptchaManager handles challenge lifecycle, cooldowns, attempt tracking

  • CaptchaGUI displays the CAPTCHA inventory interface with character buttons

  • PlayerVerificationListener intercepts joins, blocks commands, isolates players

  • VerificationLogger logs all attempts to file

  • Commands: /captcha reload, /captcha stats, /captcha verify <player> (admin bypass)

CaptchaVerify
An advanced CAPTCHA verification plugin for offline/cracked Minecraft servers. Teleports unverified players to a void isolation zone and presents a configurable inventory-based CAPTCHA challenge before granting server access. Features multiple CAPTCHA types (click-sequence, math, image-select), configurable cooldowns and attempt limits, per-session memory so verified players aren't re-challenged, and a full file-based verification attempt log for moderation.

Hereโ€™s a summary of everything built:


CaptchaVerify โ€” What Was Built

Architecture

  • CaptchaVerify โ€” Main plugin class, wires all managers together

  • CaptchaManager โ€” Core logic: session lifecycle, cooldowns, attempt tracking, void teleport/restore

  • CaptchaSession โ€” Holds per-player state: original location, gamemode, active challenge, timeout task

  • VerificationLogger โ€” Appends timestamped entries to logs/verification.log

  • PlayerVerificationListener โ€” Blocks movement, chat, commands, damage, drops, and inventory closing for unverified players; re-opens GUI if closed

  • CaptchaCommand โ€” /captcha reload|stats|verify|list for admins

Three CAPTCHA Types (configurable via config.yml)

Type
How it works
CLICK_SEQUENCE
Click 3 colored wool blocks in the exact order shown
MATH
Click the correct answer to a simple arithmetic problem from 4 choices
ITEM_SELECT
Click the one item that matches the name shown in the GUI title

Security Flow

  1. Player joins โ†’ cooldown check โ†’ void teleport + SPECTATOR mode โ†’ GUI opens

  2. Wrong answer โ†’ attempt counter increments โ†’ new challenge generated

  3. Max attempts reached โ†’ kicked + cooldown applied

  4. Timeout โ†’ kicked (no cooldown penalty)

  5. Correct answer โ†’ restored to original location + gamemode, added to verified set

  6. On quit โ†’ verified status cleared (re-verify on next join, appropriate for offline-mode servers)

Permissions

Node
Default
Purpose
captchaverify.bypass
false
Skip CAPTCHA entirely (give to trusted staff)
captchaverify.admin
op
Access
/captcha
admin commands
Y

fix bugs and enhance the plugin at next level so so advanced

Kodari AI
KodariMay 21 at 1:52 am 39,262 (v2)

Let me read all the project files first.

Hereโ€™s my full analysis of every bug and enhancement opportunity:

Bugs found:

  1. GUIManager.openGUI() calls getInventory() (lazy-init) then openInventory() โ€” but decorate() only fires on onOpen, which means buttons are registered after the inventory is already shown. The InventoryGUI.onOpen calls decorate() correctly, but openGUI registers the handler before openInventory โ€” this is fine, but ClickSequenceChallenge calls super.decorate(player) at the end of its own decorate() override, which re-runs decorate() a second time, double-placing all buttons.

  2. ClickSequenceChallenge.createGUI() creates a new anonymous InventoryGUI but clickedIndices is a field on the outer class โ€” shared across GUI instances, never properly isolated per-session. Re-opening the GUI (on wrong answer) creates a new challenge but the old clickedIndices state leaks.

  3. CaptchaManager.handlePlayerQuit() removes verified status โ€” this means legit players who disconnect briefly must re-verify. This should be configurable.

  4. teleportToVoid hardcodes world player.getWorld() but teleports to 0, -64, 0 which may be inside terrain on some worlds. Should use a safe void location.

  5. PlayerVerificationListener.onInventoryClose creates a new GUI via createGUI() every re-open โ€” this creates a fresh challenge object but the session still holds the old one, causing a mismatch.

  6. MathChallenge.generateChoices() can produce duplicate offsets (e.g. correct + 1 and correct - 1 could both equal the same value if correct is 0), and can produce the same wrong answer twice since it only checks uniqueness in the set but the offset logic can loop forever if the range is tiny.

  7. CaptchaManager.handleWrongAnswer() opens a new GUI but the old GUI inventory is still registered in GUIManager โ€” memory leak, and the old inventoryโ€™s close event will re-open yet another GUI.

  8. AsyncPlayerChatEvent is deprecated on Paper โ€” should use AsyncChatEvent.

  9. No RANDOM captcha type โ€” config says CLICK_SEQUENCE but thereโ€™s no way to randomize per-player.

  10. The InventoryGUI.onOpen calls decorate() but subclasses that override decorate() and call super.decorate() at the end will double-place items.

Enhancements:

  • RANDOM captcha type that picks a random challenge per player

  • Persistent verified players across reconnects (configurable)

  • IMAGE_WORD style challenge (word scramble via item names)

  • Per-player attempt tracking with configurable escalating cooldowns

  • /captcha kick <player> and /captcha reset <player> admin commands

  • Broadcast to admins when a player fails/passes

  • Log rotation (daily log files)

  • captchaverify.bypass also skips re-verification on rejoin

  • Title/subtitle display for the challenge instructions

  • Sound effects on correct/wrong answer

Now I have a complete picture. Let me implement everything:

Plan:

  • Fix all 10 bugs: double-decorate, shared clickedIndices state, GUI memory leak on wrong answer, AsyncPlayerChatEvent deprecation, generateChoices infinite loop risk, re-open GUI mismatch, hardcoded void location, verified-on-quit behavior

  • Add RANDOM captcha type, /captcha kick + /captcha reset commands, admin broadcast notifications, title/subtitle display, sound effects on correct/wrong, daily log rotation, persistent verified players config option, escalating cooldowns, WordScrambleChallenge as a 4th challenge type

Now create the new WordScrambleChallenge:

Here is a complete summary of every change made:


Bugs Fixed

#
Bug
Fix
1
clickedIndices shared across GUI instances
โ€” field on outer class leaked state between re-opens
Moved
clickedIndices
to a local variable inside
createGUI()
, making it per-GUI-instance
2
Double decorate() call
โ€” subclasses called
super.decorate()
at the end of their own
decorate()
, causing all buttons to be placed twice
Removed the redundant
super.decorate()
call pattern;
onOpen
calls
decorate()
once via the base class
3
GUI memory leak on wrong answer
โ€” old inventory stayed registered in
GUIManager
after a new one was opened
GUIManager
now tracks one inventory per player UUID;
openGUI()
unregisters the previous one automatically
4
Re-open GUI mismatch
โ€”
onInventoryClose
called
createGUI()
creating a brand-new challenge, but the session still held the old one
Now re-uses
session.getChallenge().createGUI()
so the same challenge object is reused
5
AsyncPlayerChatEvent deprecated on Paper
Replaced with
io.papermc.paper.event.player.AsyncChatEvent
6
MathChallenge.generateChoices() potential infinite loop
โ€” tiny operand ranges could make it impossible to find 4 distinct values
Added attempt counter (max 100), wider offset range (ยฑ1โ€“9), and a sequential fallback filler
7
Hardcoded void teleport 0, -64, 0
โ€” could be inside terrain
Now teleports to the playerโ€™s own XZ at a configurable
limbo-y
(default 500)
8
Verified status always cleared on quit
โ€” legitimate players had to re-verify every reconnect with no option to change it
Added
captcha.persist-verified
config option (default
false
preserves old behavior)
9
GUIManager.handleClose() unregistered inventory immediately
โ€” broke the re-open flow
Close no longer auto-unregisters;
CaptchaManager
owns the lifecycle and calls
unregisterInventory()
explicitly
10
PlayerMoveEvent cancelled on head rotation
โ€” caused jitter/lag for unverified players
Added block-coordinate check; only cancels movement to a different block

Enhancements Added

  • WORD_SCRAMBLE challenge โ€” new 4th challenge type; players unscramble a Minecraft-themed word from 4 choices

  • RANDOM captcha type โ€” randomly picks one of the 4 challenge types per player join

  • Title/subtitle display โ€” players see a large screen title on verification start and on success

  • Sound effects โ€” configurable XSeries sounds on correct (ENTITY_PLAYER_LEVELUP) and wrong (ENTITY_VILLAGER_NO) answers

  • Admin broadcast โ€” online admins (captchaverify.admin) receive real-time notifications on pass/fail/timeout (toggleable via logging.broadcast-to-admins)

  • /captcha kick <player> โ€” admin command to forcibly kick a player from their verification session

  • /captcha reset <player> โ€” admin command to clear verified status and cooldown (supports offline players)

  • /captcha list now shows elapsed time and attempt count per session

  • /captcha stats now shows cooldown count

  • Daily log rotation โ€” logs are written to verification-YYYY-MM-DD.log files instead of a single file

  • Elapsed time in success logs โ€” records how many seconds the player took to verify

  • Escalating cooldowns โ€” cooldown-escalation-factor config multiplies the cooldown on repeated failures

  • Tab completion filtering โ€” tab complete now filters by prefix instead of returning all options always

  • 12 item pool (was 10) + NETHERITE_SCRAP and PRISMARINE_SHARD added to ItemSelectChallenge

  • captchaverify.bypass also skips re-verification when persist-verified: false โ€” bypass players are never put into a session

Y

see nothing inventory no popup no map with captcha no nothing to verify fix damn issue!

1 image attached
Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
21 1,811
src/main/java/com/captchaverify/CaptchaVerify.java
package com.captchaverify;

import com.captchaverify.captcha.CaptchaManager;
import com.captchaverify.commands.CaptchaCommand;
import com.captchaverify.inventory.gui.GUIListener;
import com.captchaverify.inventory.gui.GUIManager;
import com.captchaverify.listeners.PlayerVerificationListener;
import com.captchaverify.logging.VerificationLogger;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

public class CaptchaVerify extends JavaPlugin {

    @Getter private GUIManager guiManager;
    @Getter private CaptchaManager captchaManager;
    @Getter private VerificationLogger verificationLogger;

    @Override
    public void onEnable() {
        saveDefaultConfig();

        this.guiManager = new GUIManager();
        this.verificationLogger = new VerificationLogger(this);
        this.captchaManager = new CaptchaManager(this);

        GUIListener guiListener = new GUIListener(guiManager);
        getServer().getPluginManager().registerEvents(guiListener, this);
        getServer().getPluginManager().registerEvents(new PlayerVerificationListener(this), this);

        CaptchaCommand captchaCommand = new CaptchaCommand(this);
        getCommand("captcha").setExecutor(captchaCommand);
        getCommand("captcha").setTabCompleter(captchaCommand);

        getLogger().info("CaptchaVerify enabled.");
    }

    @Override
    public void onDisable() {
        if (captchaManager != null) {
            captchaManager.cleanupAll();
        }
        getLogger().info("CaptchaVerify disabled.");
    }
}