involveddd

do you know the mincraft server echosmp.com?

Kodari AI
KodariJul 23 at 7:56 pm 1

I’m not familiar with echosmp.com specifically — I don’t browse or track individual Minecraft servers. But if you’re building a plugin for that server, I can help. What would you like to create? A project name and description would be the first step.

involveddd

what about donutsmp?

Kodari AI
KodariJul 23 at 7:56 pm 1

Donutsmp doesn’t ring a bell either — I don’t track or play on specific Minecraft servers, so I won’t know whether a given server exists.

If you’d like to build a plugin for donutsmp, just give me the project name (PascalCase) and a brief description of what it does, and I’ll build it from scratch. For example:

  • DonutEconomy — economy plugin with currency named after donut flavors

  • DonutSMPCore — core plugin for the server with essential features

  • DonutShop — shop/auction plugin themed around donuts

What would you like to make?

involveddd

donutshop

Kodari AI
KodariJul 23 at 7:59 pm 1

I’ll build a donut-themed shop plugin for donutsmp.

DonutShop
A donut-themed shop plugin where players browse and purchase items using Vault economy. Features a 54-slot GUI with 12 donut items, purchase confirmation dialog, admin reload command, and automatic inventory/full-drop handling. Items are configured in config.yml with XMaterial support for cross-version compatibility.

Here’s the plan: 12 files total. I’ll create independent files in parallel, then dependent ones.

First batch — no dependencies between these:

build.gradle, plugin.yml, config.yml, ShopItem.java, MessageUtil.java, EconomyManager.java, ItemBuilder.java

[Generation stopped]

involveddd

go for it

Kodari AI
KodariJul 23 at 8:01 pm 1

I’ll create a donut-themed shop plugin for DonutSMP — full GUI shop with Vault economy, buy/sell support, and admin reload command.

DonutShop
A feature-rich shop plugin themed around donuts for DonutSMP. Players browse items in a 54-slot GUI with donut-themed products. Left-click to buy with Vault economy; right-click to sell items from inventory. Includes purchase confirmation dialog, inventory overflow handling, configurable items via config.yml, and an admin reload command.

Creating all 12 files in parallel:

[Generation stopped]

involveddd

would you find making it a .sk like a skript insted?

Kodari AI
KodariJul 23 at 8:01 pm 1

I build Java plugins, not Skripts. The DonutShop files I’ve already started are pure Java — no .sk files.

If you want a Skript instead, I can’t write that. But the Java plugin I’m building will run on Spigot/Paper and is far more powerful (better performance, full GUI control with click events, Vault integration, etc.). Want me to continue with the Java version?

involveddd

okay thats fine

Kodari AI
KodariJul 23 at 8:04 pm 1

Creating all 12 files for DonutShop now.

All 12 files created. Here’s a quick overview of what’s built:

File
Purpose
build.gradle
Gradle build with Spigot 1.21, Vault API, Lombok, XSeries
plugin.yml
Plugin metadata,
/donutshop
and
/donutshopadmin reload
commands
config.yml
12 configurable shop items (ores, blocks, tools, food)
ShopItem.java
Data class — slot, material, price, name, lore
MessageUtil.java
Color code + hex
&#RRGGBB
translator
ItemBuilder.java
Builds display items from config with price lore
EconomyManager.java
Vault wrapper — balance, withdraw, deposit
ShopConfig.java
Loads/sorts config into
ShopItem
list
ShopGUI.java
54-slot chest GUI, left=buy, right=sell, full check
ConfirmGUI.java
Confirmation dialog for purchases ≥$500
ShopCommand.java
/donutshop
opens GUI,
/donutshopadmin reload
DonutShop.java
Main plugin — init, enable, reload, listeners

Commands: /donutshop (or /dshop, /ds), /donutshopadmin reload (perm: donutshop.admin)

Dependency: Vault with an economy plugin (EssentialsX, CMI, etc.)

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
12 846
src/main/java/com/donutsmp/donutshop/DonutShop.java
package com.donutsmp.donutshop;

import org.bukkit.plugin.java.JavaPlugin;

public class DonutShop extends JavaPlugin {

    private ShopConfig shopConfig;
    private EconomyManager economyManager;
    private ShopGUI shopGUI;

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

        this.shopConfig = new ShopConfig(this);
        shopConfig.reload();

        try {
            this.economyManager = new EconomyManager(this);
        } catch (IllegalStateException e) {
            getLogger().severe("Vault economy not found! Disabling DonutShop.");
            getServer().getPluginManager().disablePlugin(this);
            return;
        }

        this.shopGUI = new ShopGUI(this, shopConfig, economyManager);

        ShopCommand executor = new ShopCommand(this);
        getCommand("donutshop").setExecutor(executor);
        getCommand("donutshopadmin").setExecutor(executor);
        getCommand("donutshopadmin").setTabCompleter(executor);

        getServer().getPluginManager().registerEvents(shopGUI, this);

        getLogger().info("DonutShop v" + getDescription().getVersion() + " enabled!");
    }

    @Override
    public void onDisable() {
        getLogger().info("DonutShop disabled.");
    }

    public void reloadShop() {
        shopConfig.reload();
    }

    public ShopGUI getShopGUI() {
        return shopGUI;
    }

    public EconomyManager getEconomyManager() {
        return economyManager;
    }
}