NIGHT MARE

MOON TAGS SMP – V1 MASTER DEVELOPMENT PROMPT

  1. PROJECT IDENTITY
  • Plugin Name: MoonTagsSMP
  • Platform: Paper 1.21.11
  • Java: Java 21
  • Build System: Maven
  • Database: SQLite
  • Server Type: Custom PvP SMP
  • Target: 100+ concurrent players
  • Edition: Java Edition

Build a complete, production-ready Minecraft plugin with actual Java source code.

Do not create a mockup, pseudocode, or incomplete prototype.

  1. CORE CONCEPT

Every player receives one permanent, randomly assigned TAG.

Each TAG has:

  • A unique custom gradient color.
  • Its own dedicated kit.
  • Its own weapons and special equipment.
  • Its own kill-based upgrade progression.

IMPORTANT:

THE TAG NEVER CHANGES.

THE KIT UPGRADES AFTER EVERY KILL.

For example, a player with the Elytra + Mace tag will always keep that tag, but their armor, weapons, tools, and enchantments will improve with each kill.

  1. TAG ASSIGNMENT SYSTEM

Admin command:

"/starttagsmp"

When executed:

  1. Check whether the SMP has already started.
  2. Assign a random available tag to every online player who does not already have one.
  3. Generate a dramatic particle animation around each player.
  4. Display the selected tag with a custom announcement.
  5. Give the player their corresponding Level 1 kit.
  6. Save their tag and progression in SQLite.
  7. Prevent accidental duplicate initialization.

Players joining after the SMP has started must automatically receive a random tag and Level 1 kit.

The same assignment animation and announcement must play for late joiners.

Existing players must never receive a new random tag when rejoining.

  1. TAG DISPLAY SYSTEM

Every tag must have a custom two-color gradient.

Display the tag:

  • Above the player's head.
  • In the TAB list.
  • Before the player's name in chat, where supported.

Use Adventure Components and Paper-compatible scoreboard/team handling.

Ensure gradient formatting is consistent and does not conflict with other plugins.

  1. TAG LIST AND COLORS

Create these tags:

  1. Elytra + Mace

Gradient: Cyan → Electric Blue

  1. Spear + Mace

Gradient: Lime → Green

  1. TNT Minecart

Gradient: Red → Orange

  1. Trident + Mace

Gradient: Aqua → Ocean Blue

  1. Crystal PvP

Gradient: Pink → Purple

  1. SMP Kit

Gradient: Yellow → Orange

  1. Spear + Elytra

Gradient: Sky Blue → White

  1. Creeper Cart

Gradient: Dark Green → Lime

  1. Breeze

Gradient: Light Cyan → Sky Blue

  1. Thunder

Gradient: Blue → Electric Purple

  1. Berserker

Gradient: Dark Red → Crimson

Each tag must have its own configurable gradient in config.yml.

  1. GLOBAL KIT RULES

These rules apply to EVERY tag:

  • Every kit must contain an Axe.
  • Every kit must contain a Pickaxe.
  • Every kit must contain appropriate food.
  • Every kit must have its own unique special items.
  • Armor upgrades with every kill.
  • Weapons upgrade with every kill.
  • Tools upgrade with every kill.
  • Enchantments upgrade with every kill.
  • Kit progression must be independent for each player.
  • The permanent tag must never change during progression.

Do not replace a player's entire inventory carelessly during upgrades.

Preserve compatible special items and player inventory data.

  1. KIT SYSTEM

Create a separate configurable kit for every tag.

ELYTRA + MACE

  • Elytra
  • Mace
  • Firework Rockets
  • Wind Charges
  • Axe
  • Pickaxe
  • Food

SPEAR + MACE

  • Spear
  • Mace
  • Shield
  • Axe
  • Pickaxe
  • Food

TNT MINECART

  • TNT Minecart-themed equipment
  • Minecart-related items
  • Combat weapon
  • Axe
  • Pickaxe
  • Food

TRIDENT + MACE

  • Trident
  • Mace
  • Shield
  • Axe
  • Pickaxe
  • Food

CRYSTAL PVP

  • End Crystals
  • Obsidian
  • Respawn Anchors
  • Glowstone
  • Totems
  • Ender Pearls
  • Combat Sword
  • Axe
  • Pickaxe
  • Food

SMP KIT

  • Iron Sword
  • Bow
  • Arrows
  • Axe
  • Pickaxe
  • Food

SPEAR + ELYTRA

  • Spear
  • Elytra
  • Firework Rockets
  • Axe
  • Pickaxe
  • Food

CREEPER CART

  • Creeper Cart special mechanic
  • Creeper-themed equipment
  • Axe
  • Pickaxe
  • Food

The Creeper Cart mechanic must be implemented as a custom, clearly identifiable ability/item system. It should provide a distinctive knockback-based combat effect, with configurable cooldowns and safe limits.

BREEZE

  • Wind Charges
  • Combat Sword
  • Axe
  • Pickaxe
  • Food

THUNDER

  • Trident
  • Riptide enchantment
  • Elytra
  • Axe
  • Pickaxe
  • Food

BERSERKER

  • Netherite Sword
  • Combat Potions
  • Axe
  • Pickaxe
  • Food

IMPORTANT: Berserker armor must NOT start as Netherite. It upgrades through the normal armor progression after kills.

The exact item quantities, enchantments, special mechanics, and cooldowns must be configurable.

  1. KILL-BASED KIT PROGRESSION

Every confirmed player kill grants exactly one kit level.

Example:

  • Starting Level: 1
  • First Kill: Level 2
  • Second Kill: Level 3
  • Third Kill: Level 4
  • Fourth Kill: Level 5

Progression must:

  • Upgrade armor.
  • Upgrade weapons.
  • Upgrade Axe and Pickaxe.
  • Improve enchantments.
  • Preserve tag identity.
  • Save immediately to SQLite.

Prevent kill farming through configurable anti-abuse checks.

Do not count:

  • Suicide.
  • Environmental deaths.
  • Non-player kills.
  • Repeated abuse of the same kill-credit event.

Prevent duplicate progression from multiple death or damage events.

  1. ARMOR PROGRESSION

Default configurable armor progression:

Level| Armor 1| Leather 2| Chainmail 3| Iron 4| Gold 5| Diamond 6| Netherite

Continue supporting configurable levels beyond Level 6.

Do not force every weapon or tool to use the same material progression.

Each kit should have its own weapon and tool progression configuration.

  1. PLAYER COMMANDS
  • "/tag" – View your permanent tag.
  • "/tag info" – View your kit level and progression.
  • "/tag kit" – View your kit contents.
  • "/tag stats" – View kills and kit level.
  1. ADMIN COMMANDS
  • "/starttagsmp" – Start the SMP.
  • "/tag give <player> <tag>" – Assign a tag.
  • "/tag reset <player>" – Reset progression with confirmation.
  • "/tag setlevel <player> <level>" – Set kit level.
  • "/tag reload" – Reload configuration.
  • "/tag list" – List available tags.
  • "/tag forceupgrade <player>" – Upgrade a player's kit.
  • "/tag debug" – Display diagnostic information.

All admin commands must have proper permissions and tab completion.

  1. GUI SYSTEM

Create a polished inventory GUI.

Player GUI:

  • Permanent tag.
  • Gradient preview.
  • Current kit level.
  • Kill count.
  • Next upgrade information.
  • Current equipment.

Admin GUI:

  • Player tag management.
  • Kit level management.
  • Tag assignment.
  • Configuration overview.
  1. DATABASE

Use SQLite.

Store:

  • UUID.
  • Permanent tag ID.
  • Current kit level.
  • Total kills.
  • Assignment status.
  • Progression data.

Use safe database handling and prevent data loss.

  1. CONFIGURATION

Provide:

  • config.yml
  • tags.yml
  • kits.yml
  • messages.yml

Allow administrators to configure:

  • Tag names.
  • Gradient colors.
  • Kit contents.
  • Armor progression.
  • Weapon progression.
  • Tool progression.
  • Enchantments.
  • Kill progression.
  • Special item settings.
  • Cooldowns.
  • Anti-abuse rules.
  • Particle effects.
  • Messages.
  1. PERFORMANCE AND COMPATIBILITY

Requirements:

  • Paper 1.21.11.
  • Java 21.
  • No unnecessary repeating tasks.
  • No memory leaks.
  • Efficient SQLite operations.
  • Correct event handling.
  • No duplicate kill rewards.
  • Safe inventory updates.
  • Configurable particle effects.
  • Support at least 100 concurrent players.
  • Clean shutdown and database saving.

Use appropriate Paper APIs. Do not use deprecated APIs when a supported alternative exists.

  1. RESOURCE PACK

Do not require a resource pack for the core plugin to function.

If custom models are implemented, make their resource-pack integration optional and configurable.

  1. DEVELOPMENT PHASES

Build the project in clearly separated phases.

Phase 1: Maven project, configuration, database, tag registry and assignment.

Phase 2: Gradient display, TAB integration, particles and join handling.

Phase 3: All tag kits, inventory management and special kit mechanics.

Phase 4: Kill detection, progression and upgrade system.

Phase 5: Player GUI, admin GUI, commands and permissions.

Phase 6: Performance testing, bug fixing and final JAR.

  1. FINAL DELIVERY REQUIREMENTS

Deliver:

  • Complete Maven source project.
  • Compiled MoonTagsSMP.jar.
  • All configuration files.
  • README installation guide.
  • Command and permission documentation.
  • Testing results.

Do not claim a phase is complete unless its actual code exists and compiles.

Do not leave placeholder methods, fake functionality, or unfinished systems.

Build MoonTagsSMP as a complete, stable Paper 1.21.11 plugin.

Kodari AI
KodariMon at 9:59 am 4
MoonTagsSMP
A complete Paper 1.21.11 SMP plugin where every player receives a permanent randomly-assigned tag with a unique gradient color, dedicated kit, and kill-based upgrade progression. Features include a full GUI system, SQLite database, configurable kits and armor progression, particle animations, TAB and chat integration, comprehensive admin commands, and anti-abuse kill detection. Supports 100+ concurrent players with efficient event handling and clean shutdown.
  1. Create the Maven/Paper project, persistent SQLite profiles, and configurable tag registry.

  2. Implement tag display, assignment effects, kits, kill progression, and Creeper Cart ability.

  3. Add player/admin commands, GUIs, permissions, messages, and installation documentation.

Created the MoonTagsSMP Maven source project with SQLite persistence, permanent gradient tags, per-tag kits, kill progression, anti-farming cooldowns, the Creeper Cart knockback ability, player/admin GUIs, commands, configuration files, and installation/permission documentation.

To get the JAR, click Compile in Kodari’s top bar (on phone: ⋮ → Compile Project), then click Compile in the window and Download when it succeeds. No server runtime test results are included, so I’m not claiming live-server testing.

Kodari can make mistakes. Review important code before using.
Files
src
manifest.kod
pom.xml
README.md
Code
22 1,982
src/main/java/com/moontags/smp/MoonTagsSMP.java
package com.moontags.smp;

import com.moontags.smp.command.StartCommand;
import com.moontags.smp.command.TagCommand;
import com.moontags.smp.data.Database;
import com.moontags.smp.gui.MenuManager;
import com.moontags.smp.kit.KitManager;
import com.moontags.smp.listener.ChatListener;
import com.moontags.smp.listener.KillListener;
import com.moontags.smp.listener.PlayerListener;
import com.moontags.smp.model.PlayerProfile;
import com.moontags.smp.model.TagDefinition;
import com.moontags.smp.tag.TagDisplay;
import com.moontags.smp.tag.TagRegistry;
import com.moontags.smp.util.Text;
import net.kyori.adventure.text.Component;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.Particle;
import org.bukkit.command.CommandSender;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.entity.Player;
import org.bukkit.scheduler.BukkitRunnable;
import org.bukkit.util.Vector;
import org.bukkit.plugin.java.JavaPlugin;

import java.io.File;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
import java.util.Set;
import java.util.UUID;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ConcurrentHashMap;
import java.util.function.Consumer;

public final class MoonTagsSMP extends JavaPlugin {
    private final Map<UUID, PlayerProfile> profiles = new ConcurrentHashMap<>();
    private final Set<UUID> loadedProfiles = ConcurrentHashMap.newKeySet();
    private final Map<String, Long> killCredits = new HashMap<>();
    private final Map<UUID, Long> lastDeathRewards = new HashMap<>();
    private final Map<UUID, Long> abilityCooldowns = new HashMap<>();
    private Database database;
    private TagRegistry tags;
    private TagDisplay display;
    private KitManager kits;
    private MenuManager menus;
    private YamlConfiguration messages;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        saveResourceIfMissing("tags.yml");
        saveResourceIfMissing("kits.yml");
        saveResourceIfMissing("messages.yml");
        try {
            database = new Database(this);
        } catch (SQLException exception) {
            getLogger().severe("Could not open the SQLite database: " + exception.getMessage());
            getServer().getPluginManager().disablePlugin(this);
            return;
        }
        loadMessages();
        tags = new TagRegistry(this);
        display = new TagDisplay(this);
        kits = new KitManager(this);
        menus = new MenuManager(this);
        Bukkit.getPluginManager().registerEvents(new PlayerListener(this), this);
        Bukkit.getPluginManager().registerEvents(new KillListener(this), this);
        Bukkit.getPluginManager().registerEvents(new ChatListener(this), this);
        Bukkit.getPluginManager().registerEvents(menus, this);
        TagCommand tagCommand = new TagCommand(this);
        getCommand("tag").setExecutor(tagCommand);
        getCommand("tag").setTabCompleter(tagCommand);
        getCommand("starttagsmp").setExecutor(new StartCommand(this));
        for (Player player : Bukkit.getOnlinePlayers()) {
            ensureProfile(player, true, null);
        }
    }

    @Override
    public void onDisable() {
        if (database == null) {
            return;
        }
        for (Player player : Bukkit.getOnlinePlayers()) {
            display.clear(player);
        }
        for (PlayerProfile profile : profiles.values()) {
            database.saveProfile(profile);
        }
        try {
            database.close();
        } catch (SQLException exception) {
            getLogger().severe("Could not close SQLite cleanly: " + exception.getMessage());
        }
    }

    private void saveResourceIfMissing(String name) {
        if (!new File(getDataFolder(), name).exists()) {
            saveResource(name, false);
        }
    }

    private void loadMessages() {
        messages = YamlConfiguration.loadConfiguration(new File(getDataFolder(), "messages.yml"));
    }

    public TagRegistry tags() {
        return tags;
    }

    public TagDisplay display() {
        return display;
    }

    public KitManager kits() {
        return kits;
    }

    public MenuManager menus() {
        return menus;
    }

    public PlayerProfile profile(UUID uuid) {
        return profiles.get(uuid);
    }

    public boolean isStarted() {
        return database != null && database.isStarted();
    }

    public int cachedProfileCount() {
        return profiles.size();
    }

    public void ensureProfile(Player player, boolean assignMissing, Consumer<PlayerProfile> callback) {
        UUID uuid = player.getUniqueId();
        if (loadedProfiles.contains(uuid)) {
            PlayerProfile current = profiles.get(uuid);
            if (current == null && assignMissing && isStarted()) {
                current = assignRandom(player);
            }
            if (callback != null) {
                callback.accept(current);
            }
            return;
        }
        database.loadProfile(uuid).whenComplete((loaded, error) -> Bukkit.getScheduler().runTask(this, () -> {
            if (!player.isOnline()) {
                return;
            }
            if (error != null) {
                getLogger().severe("Could not load profile for " + player.getName() + ": " + error.getMessage());
                return;
            }
            loadedProfiles.add(uuid);
            PlayerProfile current = profiles.get(uuid);
            if (current == null) {
                current = loaded.orElse(null);
                if (current != null && current.assigned()) {
                    profiles.put(uuid, current);
                    display.apply(player, current);
                } else {
                    current = null;
                    if (assignMissing && isStarted()) {
                        current = assignRandom(player);
                    }
                }
            }
            if (callback != null) {
                callback.accept(current);
            }
        }));
    }

    public void unload(Player player) {
        loadedProfiles.remove(player.getUniqueId());
        profiles.remove(player.getUniqueId());
        display.clear(player);
    }

    public void startSmp(CommandSender sender) {
        if (isStarted()) {
            send(sender, "already-started");
            return;
        }
        database.setStarted(true).exceptionally(error -> {
            getLogger().severe("Could not save SMP started state: " + error.getMessage());
            return null;
        });
        send(sender, "started");
        for (Player online : Bukkit.getOnlinePlayers()) {
            ensureProfile(online, true, null);
        }
    }

    public void giveTag(Player target, String tagId, CommandSender actor) {
        TagDefinition tag = tags.get(tagId);