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.
- 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.
- 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.
- 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.
- 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.
- 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.
- Quality Requirements
Before considering the project complete:
- Check every class for compilation errors.
- Check command registration.
- Check permission registration.
- Check event listeners.
- Check configuration loading.
- Check kit saving/loading.
- Check mass kit application.
- Check death-message filtering.
- Verify that normal player chat is hidden.
- Verify that death messages still appear.
- Verify behavior after a server restart.
- 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.