ik_ben_yfer

Develop a plugin that replicates the features of NappyCraft, ensuring players can wear diapers in the pants slot. Implement a system that automatically equips the diaper for the player named Mick_de_Bouwer upon joining the server, with configurable options for other players to opt-in or out. Include permissions for server admins to manage diaper attributes and visibility settings.

Kodari AI
KodariMay 23 at 6:38 pm 12,272 (v2)

I’ll create a custom equipment plugin with cosmetic diaper items, auto-equip functionality, and GUI-based settings management.

DiaperCraft
A cosmetic equipment plugin that allows players to wear custom diaper items in the leggings armor slot. Features automatic equipment for specific players on join, opt-in/out preference system with GUI interface, admin commands for item management, configurable diaper attributes and appearance, and permission-based visibility controls. Includes persistent player data storage and full customization options.

Plan:

  • Core system: Diaper item creation with custom attributes and NBT tags

  • Auto-equip listener for specific players (Mick_de_Bouwer by default)

  • Player preference storage with opt-in/out toggle system

  • GUI-based settings menu for easy player configuration

  • Admin commands for management and item distribution

  • Permission system for visibility and admin features

✅ DiaperCraft plugin created!

Features implemented:

  • Custom diaper items (pink leather leggings) with NBT tagging

  • Auto-equip system for “Mick_de_Bouwer” and opt-in players on join

  • Persistent player preference storage (opt-in/out)

  • Interactive GUI settings menu with toggle, equip, and item distribution

  • Commands: /diaper toggle, /diaper equip, /diaper settings, /diaper give <player>, /diaper reload

  • Permission-based admin controls and visibility settings

  • Fully configurable colors, names, lore, and behavior

  • XSeries integration for cross-version compatibility

The plugin uses a professional GUI framework with lazy initialization, NBT tags for item identification, and YAML data persistence for player preferences.

ik_ben_yfer

are daipers crafteble

Kodari AI
KodariMay 23 at 6:40 pm 2,089 (v2)

No, diapers are not craftable in the current implementation. They can only be obtained through:

  1. Auto-equip on join (for Mick_de_Bouwer or opt-in players)

  2. Admin command: /diaper give <player> (requires diapercraft.admin permission)

  3. Settings GUI: Players can click “Get Diaper Item” if they don’t have one

Would you like me to add crafting recipes for the diaper items? I can implement:

  • Shaped recipe (e.g., paper/wool pattern in crafting table)

  • Shapeless recipe (combine specific materials)

  • Multiple recipe variants (different materials = different diaper colors/types)

  • Permission-gated crafting (only players with permission can craft)

Let me know if you’d like crafting added and what recipe pattern you prefer!

ik_ben_yfer

add a craftig recepy

Kodari AI
KodariMay 23 at 6:42 pm 13,385 (v2)

I’ll add a crafting recipe system with configurable materials and patterns.

✅ Crafting recipe system added!

What was implemented:

  • Shaped recipe (default): Paper + String pattern creates diaper

    Plain Text
    PPP
    S_S
    P_P
    

    (P = Paper, S = String, _ = empty)

  • Shapeless recipe option: Combine materials in any arrangement

  • Fully configurable in config.yml:

    • Enable/disable crafting

    • Choose SHAPED or SHAPELESS

    • Customize pattern and ingredients

    • Permission-gated crafting (diapercraft.craft)

  • Recipe Manager handles registration and cleanup on reload/disable

  • Crafting Listener enforces permission checks if enabled

Players can now craft diapers using the workbench! Change the recipe pattern/materials in config.yml and use /diaper reload to update.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
18 1,205
src/main/java/com/diapercraft/DiaperCraft.java
package com.diapercraft;

import com.diapercraft.commands.DiaperCommand;
import com.diapercraft.data.PlayerDataManager;
import com.diapercraft.inventory.gui.GUIListener;
import com.diapercraft.inventory.gui.GUIManager;
import com.diapercraft.items.DiaperItemManager;
import com.diapercraft.listeners.CraftingListener;
import com.diapercraft.listeners.PlayerJoinListener;
import com.diapercraft.managers.ConfigManager;
import com.diapercraft.recipes.RecipeManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class DiaperCraft extends JavaPlugin {
    
    private ConfigManager configManager;
    private DiaperItemManager diaperItemManager;
    private PlayerDataManager playerDataManager;
    private GUIManager guiManager;
    private RecipeManager recipeManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.configManager = new ConfigManager(this);
        this.diaperItemManager = new DiaperItemManager(this);
        this.playerDataManager = new PlayerDataManager(this);
        this.guiManager = new GUIManager();
        this.recipeManager = new RecipeManager(this);
        
        registerListeners();
        registerCommands();
        recipeManager.registerRecipes();
        
        getLogger().info("DiaperCraft has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (playerDataManager != null) {
            playerDataManager.saveAll();
        }
        if (recipeManager != null) {
            recipeManager.removeRecipe();
        }
        getLogger().info("DiaperCraft has been disabled!");
    }
    
    private void registerListeners() {
        Bukkit.getPluginManager().registerEvents(new PlayerJoinListener(this), this);
        Bukkit.getPluginManager().registerEvents(new GUIListener(guiManager), this);
        Bukkit.getPluginManager().registerEvents(new CraftingListener(this), this);
    }
    
    private void registerCommands() {
        getCommand("diaper").setExecutor(new DiaperCommand(this));
    }
    
    public void reload() {
        reloadConfig();
        configManager = new ConfigManager(this);
        diaperItemManager = new DiaperItemManager(this);
        recipeManager = new RecipeManager(this);
        recipeManager.registerRecipes();
    }
}