Greetings, and may your code compile on the first try. Before we begin our descent into darkness — are you fully versed in the Minecraft Paper API for version 1.21.8? If not, the grimoire lies here: https://docs.papermc.io/paper/dev/ — study it well, for we shall reference it throughout this entire cursed endeavor.
Also burn the following API documentation into your memory before touching a single line of code:
- Vault: https://github.com/MilkBowl/VaultAPI
- LuckPerms: https://central.sonatype.com/artifact/net.luckperms/api
- EssentialsX: https://essentialsx.net/wiki/introduction
- ModelEngine: https://github.com/Ticxo/Model-Engine-Wiki
- MythicMobs: https://www.mythiccraft.io/javadocs/mythic/io/lumine/mythic/api/mobs/package-summary.html
- ExecutableItems & SCore: https://docs.ssomar.com/executableitems/developer-api
- SkinsRestorer: https://skinsrestorer.net/docs/development/api
---
You are to forge a Minecraft plugin called CursedSMP — a plugin so deeply cursed, so meticulously crafted, that server owners will weep tears of joy at the sheer volume of config options available to them. Build it for Paper 1.21.8 using Gradle, under the package structure com.xibrahimx.cursedsmp.
This plugin is not just configurable. It is EXTREMELY, CATASTROPHICALLY, OBSESSIVELY configurable. Every single feature, value, message, sound, particle, command, cooldown, multiplier, item name, item lore, item material, effect level, effect duration, tier threshold, group name, particle type, particle speed, particle count, particle offset, bounty multiplier, spawn count, mob type, and behavior must be exposed in the config files. If it can change, it must be configurable. No hardcoded values shall survive. Every single config option must have a clear, human-readable comment above it explaining precisely what it does and what values are accepted.
---
🔤 FONT & STYLE — THE CURSED TONGUE
Every single piece of text this plugin outputs — messages, console logs, item names, lore lines, titles, subtitles, action bars — must be written in this Unicode small caps font:
ᴀ ʙ ᴄ ᴅ ᴇ ғ ɢ ʜ ɪ ᴊ ᴋ ʟ ᴍ ɴ ᴏ ᴘ ǫ ʀ s ᴛ ᴜ ᴠ ᴡ x ʏ ᴢ
Normal ASCII letters are forbidden in any player-facing or display-facing context. The small caps font must be used everywhere — no exceptions.
All messages must use MiniMessage format and must be visually stunning out of the box:
- Soul-themed gradients: deep purples, midnight blues, crimson reds
- A distinct color-coded plugin prefix on every message
- Contextual colors: red for loss and death, green for soul gain, gold for bounty, purple for tier advancement
- Bold and italic decorations used tastefully for dramatic effect
Every default message in messages.yml must ship pre-written with full MiniMessage formatting and small caps font already applied. Players must feel the atmosphere the moment they read their first message. No bland defaults. No placeholder text. Polished and atmospheric from first boot.
---
🔌 HARD DEPENDENCIES — THE PACT
This plugin has made a dark pact with the following plugins. All must be checked at startup and all must be deeply integrated:
- Vault, LuckPerms, PlaceholderAPI, ExecutableItems, MythicMobs, SCore (by Ssomar), ModelEngine, SkinsRestorer
---
🖥️ CONSOLE DISPLAY — THE AWAKENING
When the plugin awakens, it must announce itself with a clean, well-formatted ASCII box printed to the console containing:
- Plugin name: CursedSMP
- Author: xibrahimx
- A short but dramatic plugin description
- A dependency status list — each dependency marked with ✔ if found and loaded, or ✘ if missing
- All text inside the console box must use the Unicode small caps font
---
📁 CONFIG FILE STRUCTURE — THE FOUR TOMES
All configuration must be split cleanly across four dedicated files. Do not dump everything into one file:
config.yml — Core soul rules, storage settings, bounty system, particle settings, sound settings, cooldowns, command names, permission nodes
messages.yml — Every single user-facing message. MiniMessage format. Small caps font pre-applied. Atmospheric defaults.
items.yml — All custom item definitions: Soul Item, Soul Fragment, Revival Card, Soul Staff
tiers.yml — All soul tier definitions: thresholds, LuckPerms groups, potion effects, tier-up messages, and rewards
---
💾 STORAGE — WHERE SOULS ARE KEPT
Primary storage: MongoDB Atlas
- Full MongoDB Atlas connection URI configurable in config.yml
- Database name configurable
- Collection names individually configurable
- Connection pool size and timeout configurable
- All database operations must be completely async and non-blocking using the async MongoDB Java driver
- On successful connection, log a clean confirmation message to console using small caps font
Fallback storage: YAML flat files
- Automatically fall back to YAML if MongoDB URI is not set or if the connection fails
- Clearly log to console which storage backend is currently active
- YAML files must be clean, well-structured, and human-readable
On plugin shutdown: gracefully flush and persist all in-memory data before the plugin fully disables. No data loss on clean shutdown.
All of the following player data must persist across restarts:
- Soul count
- All active cooldowns
- Bounty state
- Active bounty quest state
- Which tier rewards have already been granted
---
💀 THE SOUL SYSTEM — THE HEART OF THE CURSE
Soul Basics (all values configurable in config.yml):
- Every new player begins with a configurable number of souls (default: 5)
- 1 soul = 1 heart = 2 HP. Health must scale instantly the moment souls change. No delays.
- Souls survive server restarts. They are eternal.
- The maximum possible souls a player can hold is 4,294,967,296. The HP scaling must handle this cap without breaking, overflowing, or causing any server errors.
Death Logic:
- Player kill: the victim loses a configurable number of souls (default: 1), and the killer gains a configurable number of souls (default: 1)
- Environmental death: the victim loses a configurable number of souls (default: 1), and a physical Soul Item drops at the exact death location
Zero Souls — The Final Curse:
- When a player reaches zero souls, they have lost everything
- Execute a fully configurable console command against the player (default behavior: permanent ban)
- Drop a Revival Card at the death location so another player may show mercy
- The player must always respawn at their set respawn point. If no respawn point is set, use world spawn. Since we are manually controlling the death sequence, the respawn logic must be fully handled to prevent any vanilla respawn conflicts, visual glitches, or duplication bugs.
---
🔮 SOUL ITEM — THE CURRENCY OF THE DAMNED (Configured in items.yml)
- Material: configurable
- Display name and lore: configurable — defaults must use small caps font and MiniMessage soul-themed colors
- Infinitely stackable — no stack size limit
- Uniquely identified using a PersistentDataContainer key so it can never be confused with a vanilla item
- CustomModelData: configurable integer only — absolutely no floats, no strings, integers exclusively
- Dropped at the death location on environmental deaths
- When a player picks up and absorbs a Soul Item:
- Play a configurable sound (sound name, volume, and pitch all individually configurable)
- Spawn configurable particles at the absorption location:
- Particle type: configurable
- Particle count: configurable
- Particle speed: configurable
- Particle offset on X, Y, and Z axes: individually configurable
- Any extra particle data where the particle type supports it: configurable
- Must include robust anti-duplication measures — no soul item duplication exploits
Crafting Recipe — fixed and sacred, visible in items.yml for reference but not changeable by config:
F S F
S N S
F S F
F = Soul Fragment | S = Soul Sand | N = Nether Star
---
🧩 SOUL FRAGMENT — THE BUILDING BLOCK (Configured in items.yml)
- Material: configurable
- Display name and lore: configurable — defaults must use small caps font and MiniMessage colors
- CustomModelData: configurable integer only — no floats, no strings
- Stack size: maximum 64
- Crafted via a fully configurable shaped recipe — all 9 slots can be set to any vanilla Minecraft item in items.yml
- Full list of valid vanilla Minecraft items: https://minecraft.fandom.com/wiki/Item
Default crafting recipe (all 9 slots are configurable in items.yml):
# # #
# # #
# # #
# = any vanilla item as defined in items.yml
---
🃏 REVIVAL CARD — MERCY FOR THE FALLEN (Configured in items.yml)
- Material: configurable
- Display name and lore: configurable — defaults must use small caps font and MiniMessage colors
- CustomModelData: configurable integer only — no floats, no strings
- Drops at the death location the moment a player reaches zero souls
- Right-click to activate:
- Executes a configurable unban command on the target player
- Restores the target to a configurable number of souls (default: 5)
- Must include robust anti-duplication measures
---
👑 THE SOUL TIER SYSTEM — RANKS OF THE CURSED (Configured in tiers.yml)
On every soul count change — whether gain or loss — the plugin must instantly evaluate which tier the player belongs to, reassign the correct LuckPerms group, and reapply the correct permanent potion effects. No delays. No waiting for the next login.
Absolute rules that must never be broken:
- Player titles and ranks are managed EXCLUSIVELY through LuckPerms groups
- The plugin is only permitted to ADD or REMOVE LuckPerms groups — it must NEVER touch display names, prefixes, or suffixes directly
- Every soul change must trigger an immediate group and effect update
- On every tier upgrade, send the player a dramatic title, subtitle, and chat message using MiniMessage gradients and small caps font with colors appropriate to that tier
Tier definitions (all values fully configurable in tiers.yml):
5 to 24 souls:
LuckPerms group: none
Potion effects: none
25 to 49 souls:
LuckPerms group: cursed_collector
Potion effects: Strength V, Regeneration V, Speed II
50 to 74 souls:
LuckPerms group: awakened_curse
Potion effects: Strength X, Regeneration X, Speed III, Haste V
75 to 99 souls:
LuckPerms group: lonely_reaper
Potion effects: Strength XV, Regeneration XV, Speed IV, Haste X, Resistance X
100 to 4,294,967,295 souls:
LuckPerms group: cursed_emperor
Potion effects: Strength XX, Regeneration XX, Speed V, Haste XX, Resistance XX, Fire Resistance XX
One-time rewards granted via ExecutableItems API ONLY — do NOT recreate or reimplement these items:
- flytool
- hsword
- scale1
These rewards are granted exactly once, the first time the player enters this tier. They must never be granted again on relog, tier re-entry, or any other trigger. The plugin must track whether these rewards have been granted in persistent storage.
4,294,967,296 souls — THE MAXIMUM — THE IMMORTAL:
LuckPerms group: immortal_being
Potion effects: Strength 255, Regeneration 255, Speed 10, Haste 255, Resistance 255, Fire Resistance 255, Saturation 255, Instant Health 255
CRITICAL: Players ascending to immortal_being must keep every ExecutableItems reward they received at cursed_emperor tier (flytool, hsword, scale1). These items were already given. Do not take them away. Do not give them again. Do not touch the player's inventory regarding these items at all. immortal_being inherits everything from cursed_emperor and builds upon it — it does not replace it.
---
🪄 THE SOUL STAFF — WEAPON OF THE EMPEROR (Configured in items.yml)
- Material: configurable
- Display name and lore: configurable — defaults must use small caps font and MiniMessage colors
- CustomModelData: configurable integer only — no floats, no strings
- Uniquely identified via PersistentDataContainer
Right-click behavior:
- Apply the Herobrine disguise to the holder using SkinsRestorer's developer API exclusively — no workarounds, no other skin methods
- The Herobrine skin value and signature must be configurable in items.yml
Shift + Right-click behavior:
- Summon a configurable number of MythicMobs minions (default: 2) at the player's current location
- The MythicMobs mob type to summon is configurable in items.yml
- Summoned minions must be hostile to every entity in the world except their owner
- Minion ownership must be tracked via PersistentDataContainer tags on the mob entities
- This action has a configurable cooldown
Damage Redirection — passive protection:
- While the owner has at least one living minion, monitor every incoming damage event
- If the owner's current HP falls below a configurable threshold (default: 3 hearts / 6 HP), redirect 100% of that incoming damage to the minions instead
- If all minions are dead, damage applies to the owner as normal
- This system runs passively on every EntityDamageEvent while minions are alive
---
💰 THE BOUNTY SYSTEM — HUNT OR BE HUNTED (Configured in config.yml)
Bounty value:
- A player's bounty is calculated as their soul count multiplied by a configurable multiplier (default: 1000)
- Bounties are paid out through the Vault economy API
Cooldown system:
- After a bounty is successfully claimed on a target, that target cannot be claimed again for a configurable duration (default: 24 hours)
- This cooldown must survive server restarts
- When a hunter attempts to claim a target still on cooldown, clearly show them the exact remaining cooldown time
Commands:
/bounty check
Displays the executing player's current bounty value to themselves
/bountyquest
Initiates an active bounty hunt against the specified target player
The hunter must wait a configurable cooldown before using this command again (default: 30 minutes)
The quest is automatically cancelled if the hunter dies during the hunt
The quest is automatically cancelled if the prey disconnects from the server
/bountyclaim
Claims the bounty reward after the hunter has killed their target
Transfers the bounty amount to the hunter via Vault economy
Applies the 24-hour post-claim cooldown to the target
---
📊 PLACEHOLDERAPI PLACEHOLDERS
These placeholders must be registered internally by the plugin on startup. No ecloud download is required. They become available immediately after both CursedSMP and PlaceholderAPI are loaded.
%cursedsmp_souls% — Returns the player's current soul count
%cursedsmp_bounty% — Returns the player's current calculated bounty value
To verify placeholders are working after server boot, run:
/papi parse me %cursedsmp_souls%
/papi parse me %cursedsmp_bounty%
---
⚙️ COMMANDS — THE FULL ARSENAL
/soul balance — Displays the player's current soul count
/soul give — Gives the Soul Item as a physical in-game item to the target
/soul set — Forcefully sets a player's soul count to the specified value
/soul withdraw — Deducts souls from the player's balance and converts them into a physical Soul Item
/swithdraw — Alias for /soul withdraw
/bounty check — Shows the player their current bounty value
/bountyquest — Initiates a bounty hunt on the specified player
/bountyclaim — Claims the bounty reward after a successful kill
Every command name, every alias, and every permission node must be fully configurable in config.yml.
---
📄 SETUP.md — THE GUIDE FOR THE MOBILE SORCERER
Generate a thorough, well-written SETUP.md that covers every step a server owner needs to go from zero to a fully running CursedSMP server. This guide is written exclusively for mobile users operating through Termux. No PC steps. No local hosting steps. External hosts only.
Cover the following in order:
1. What you need before you start — Termux setup, required packages
2. Installing Java and all required build tools inside Termux step by step
3. How to compile the plugin using Gradle inside Termux
4. How to upload the compiled JAR to external server hosts such as Aternos, Falixnodes, Hexonode, Hexium Nodes, and similar platforms
5. How to install and configure every hard dependency in the correct order
6. How to create a free MongoDB Atlas cluster, get your connection URI, and plug it into config.yml. Also explain what happens if you skip this — YAML fallback kicks in automatically.
7. How to create the required LuckPerms groups that match the tier names in tiers.yml exactly
8. How to create the MythicMobs mob that the Soul Staff will summon, including a working example mob config
9. How to create the ExecutableItems items (flytool, hsword, scale1) and make sure their IDs match what is set in tiers.yml
10. How PlaceholderAPI picks up the CursedSMP placeholders automatically on startup — explain that no /papi ecloud download command is needed, and show how to verify they work using /papi parse me %cursedsmp_souls%
11. How to display %cursedsmp_souls% and %cursedsmp_bounty% on a scoreboard using the TAB plugin — include a complete, copy-paste-ready TAB config example
12. A first boot checklist — a clean ordered list of everything to verify before letting players onto the server
---
⚠️ FINALIZATION — THE COMMANDMENTS
These rules are absolute. Violating any of them is unacceptable:
- All database and storage operations must be fully asynchronous and non-blocking. The main server thread must never be blocked by I/O.
- On plugin shutdown, all in-memory data must be flushed and saved cleanly. Zero data loss on graceful shutdown.
- Every single user-facing message must live in messages.yml and use MiniMessage format. No hardcoded messages anywhere in the Java code.
- Every default message must ship pre-written with full MiniMessage gradients, colors, and the Unicode small caps font already applied. They must look atmospheric and polished with zero additional setup from the server owner.
- Every sound must be configurable: sound name, volume, and pitch.
- Every particle must be configurable: type, count, speed, X/Y/Z offset, and extra data where the particle type supports it.
- Every command name, alias, and permission node must be configurable in config.yml.
- Every config key must have a comment above it explaining what it does and what values are valid.
- The code must be clean, well-structured, production-ready, and follow Paper 1.21.8 best practices throughout.
- Consult https://docs.papermc.io/paper/dev/ and all provided API documentation links wherever relevant.
📦 DELIVERY — THE ONLY ACCEPTABLE FORMAT
When all code is complete, you must deliver the entire project as a single ZIP archive. The ZIP must contain:
- The complete Gradle project structure ready to compile with no modifications needed
- All Java source files under src/main/java/com/xibrahimx/cursedsmp/
- All resource files under src/main/resources/ (plugin.yml, config.yml, messages.yml, items.yml, tiers.yml)
- build.gradle and settings.gradle at the project root
- SETUP.md at the project root
The ZIP must be named CursedSMP.zip and must be directly compilable by running ./gradlew build inside Termux with no additional setup beyond what is documented in SETUP.md. Do not output individual code blocks. Do not output a folder tree. Deliver one ZIP. That is all.