bipnix_fr

NaitikPlugin — Master AI Coding Prompt

You are an expert Minecraft server plugin developer. Build a production-ready, professional Minecraft plugin named NaitikPlugin. The code must be clean, optimized, maintainable, secure, and written as if it were developed by an experienced professional plugin developer—not generated by AI.

  1. Kit Management & Mass Kit Application

Create a complete kit management system that allows the server administrator to:

  • Create and save a kit from their current inventory.
  • Give the kit to individual players.
  • Apply the configured kit to all currently online players at once with a single command.
  • Replace players' existing inventory when the administrator explicitly chooses to apply the kit.
  • Preserve the kit exactly as it was configured, including item names, lore, enchantments, attributes, quantities, armor, and other supported item data.
  • Store the configured kit persistently so it remains available after a server restart.
  • Prevent unauthorized players from using administrative kit commands.

Use clear administrative commands such as:

"/naitik kit set <name>"

"/naitik kit give <player> <name>"

"/naitik kit giveall <name>"

"/naitik kit delete <name>"

"/naitik kit list"

"/naitik reload"

Add proper permission nodes for every administrative action.

  1. Death Messages Only

Add a dedicated death-message system.

The important requirement is:

Normal player chat must NOT be displayed. Only Minecraft death messages should appear in chat.

When a player dies, the normal vanilla-style Minecraft death message should be displayed to everyone according to the server's configured death-message behavior.

Examples of supported vanilla-style messages include:

  • Player was slain by another player.
  • Player died from falling.
  • Player was shot.
  • Player drowned.
  • Player was killed by a mob.

Do not create unnecessary custom death-message formats unless configured by the administrator.

The plugin must completely suppress normal player chat messages while keeping death messages visible.

Do not interfere with commands, console messages, join messages, quit messages, system messages, or other server functionality unless explicitly required.

  1. Configuration

Create a clean "config.yml" with options for:

  • Kit settings.
  • Death-message settings.
  • Chat suppression settings.
  • Messages.
  • Permissions.
  • Debug mode.

All important behavior should be configurable rather than hard-coded.

  1. Professional Architecture

Follow professional Minecraft plugin development standards:

  • Use a clean package structure.
  • Separate commands, listeners, managers, configuration, utilities, and data handling.
  • Avoid unnecessary dependencies.
  • Avoid deprecated APIs where modern APIs are available.
  • Use proper event priorities.
  • Avoid memory leaks.
  • Avoid unnecessary repeating tasks.
  • Handle invalid commands and missing kits gracefully.
  • Provide clear permission checks.
  • Provide useful error messages.
  • Never crash the server because of invalid configuration or user input.
  • Make the plugin lightweight and suitable for an SMP server with many players.
  1. Compatibility & Build

Target the exact Minecraft/server version specified by the project environment.

Use the correct API for that version and ensure the plugin builds successfully.

Include:

  • "plugin.yml"
  • Main plugin class
  • Commands
  • Event listeners
  • Managers
  • Configuration files
  • Persistent kit storage
  • Permissions
  • Complete build configuration
  • README with installation and command documentation

Do not leave placeholders such as "TODO", "implement this", or incomplete methods.

  1. Quality Requirements

Before considering the project complete:

  1. Check every class for compilation errors.
  2. Check command registration.
  3. Check permission registration.
  4. Check event listeners.
  5. Check configuration loading.
  6. Check kit saving/loading.
  7. Check mass kit application.
  8. Check death-message filtering.
  9. Verify that normal player chat is hidden.
  10. Verify that death messages still appear.
  11. Verify behavior after a server restart.
  12. Make the final project clean and production-ready.

The final result should feel like a real premium Minecraft server plugin, with clean code, sensible naming, proper error handling, and no obvious AI-generated shortcuts.

Do not over-engineer the plugin with unnecessary features. Focus on making NaitikPlugin stable, fast, professional, and reliable.

Kodari AI
KodariAug 16 at 2:06 am 2
NaitikPlugin
A comprehensive Minecraft server plugin featuring a persistent kit management system with administrative commands for creating, distributing, and mass-applying kits to players. Includes a death message system that suppresses all normal player chat while preserving vanilla-style death messages. Features configurable settings for kit behavior, death messages, chat suppression, and debug mode. Uses YAML-based persistent storage for kits, proper permission nodes for all administrative actions, and a clean event-driven architecture with separate command, listener, manager, and configuration classes. Built for stability and performance on SMP servers.
  1. Create the Gradle project and plugin metadata for Paper 1.20.4 / Java 17.

  2. Implement persistent kit capture, loading, saving, replacement, and mass application.

  3. Add administrative command handling, tab completion, permissions, and configurable messages.

  4. Add chat suppression, vanilla death-message handling, configuration, storage, and documentation.

Created the complete NaitikPlugin project with:

  • Gradle Java 17 build configuration targeting Paper 1.20.4

  • Plugin metadata, permissions, and command registration

  • Persistent Bukkit-serialized kit storage

  • Kit creation, replacement, deletion, individual application, and mass application

  • Configurable inventory replacement behavior

  • Administrative permission checks and tab completion

  • Normal chat suppression while preserving vanilla death messages

  • Configurable messages and behavior

  • README installation and command documentation

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
README.md
settings.gradle
Code
13 687
src/main/java/com/naitikplugin/NaitikPlugin.java
package com.naitikplugin;

import com.naitikplugin.command.NaitikCommand;
import com.naitikplugin.kit.KitManager;
import com.naitikplugin.listener.ChatSuppressionListener;
import com.naitikplugin.listener.DeathMessageListener;
import com.naitikplugin.util.MessageUtil;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public final class NaitikPlugin extends JavaPlugin {
    private KitManager kitManager;
    private MessageUtil messageUtil;

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

        this.messageUtil = new MessageUtil(this);
        this.kitManager = new KitManager(this);
        this.kitManager.load();

        NaitikCommand command = new NaitikCommand(this, kitManager, messageUtil);
        if (getCommand("naitik") == null) {
            getLogger().severe("The naitik command is missing from plugin.yml.");
            getServer().getPluginManager().disablePlugin(this);
            return;
        }
        getCommand("naitik").setExecutor(command);
        getCommand("naitik").setTabCompleter(command);

        Bukkit.getPluginManager().registerEvents(new ChatSuppressionListener(this), this);
        Bukkit.getPluginManager().registerEvents(new DeathMessageListener(this), this);
    }

    @Override
    public void onDisable() {
        if (kitManager != null) {
            kitManager.save();
        }
    }
}