I

So this plugin is just broken. Can you like in the jar in the resources there are dialogue and GUI but when I really use the plugin in the folder makes but there are no GUI and dialog folders and the GUI and dialog are literally very different from what I wanted like I wanted a slash orders which open normal orders and dialog orders also open normal orders but the things like when you try to search or make a new order in the slash orders it all happens in GUI or the signboard input but in the if you open the orders with slash dialog orders the search happens in dialog and the order creation happens in dialog I will attach all the screenshot and the GUI files config to you so you just make the old plugin UI to new plugin because the old UI is just broken very broken and also yeah make it like 10.21.62 it shows icon in item picker like don't show and 1.21.9 above shows icon and if 1.21.6 the dialogues menu were added so if a player is 1.21.6 below even if he types slash dialog order open normal orders for him and yeah use the GUI and screenshot I told you and in the items.yml attach list type every single item instead of typing diamond that are in type deep slay diamond diamond diamond ore diamond diamond block diamond armor and everything I am attaching the plugin source code and all the config and UI I wanted you to add.

Kodari AI
KodariOct 6 at 2:11 am 1
  1. Map the existing orders commands, UI code, version checks, and supplied assets.

  2. Rebuild normal orders so search and order creation stay in the GUI/sign input.

  3. Make dialog orders use dialog-based search and creation, with the requested fallback for older clients.

  4. Update the item picker/config to expose the full item list and correct icons per version.

[Generation stopped]

I

These are the gui files and dialogs image

--- 📎 Attached 8 file(s):

File: collect-items.yml

yml
collect-items:
    title: "&8ᴏʀᴅᴇʀs -> Collect Items"
    rows: 6
    collect-items: 0-44

items:
  previous-page-slot: 45
  previous-page:
    material: ARROW
    displayname: "&#00fc88ᴘʀᴇᴠɪᴏᴜꜱ"
    lore:
      - "&fClick to go to the previous page"

  next-page-slot: 53
  next-page:
    material: ARROW
    displayname: "&#00fc88ɴᴇxᴛ"
    lore:
      - "&fClick to go to the next page"

  drop-loot:
    material: DISPENSER
    slot: 49
    name: "&#00fc88ᴅʀᴏᴘ ʟᴏᴏᴛ"
    lore:
      - "&fClick to drop all loot on the page"

File: confirm-cancel.yml

yml
confirm-cancel:
  title: "&8ᴏʀᴅᴇʀs -> Cancel Order"
  rows: 3

items:
  cancel:
    material: RED_STAINED_GLASS_PANE
    slot: 11
    name: '&#fc0404ᴄᴀɴᴄᴇʟ'
    lore:
      - '&fClick to go back'

  confirm:
    material: LIME_STAINED_GLASS_PANE
    slot: 15
    name: '&#04fc04ᴀᴄᴄᴇᴘᴛ'
    lore:
      - '&fClick to cancel order'

  source-item:
    slot: 13 #You can change this in the config.yml

File: confirm-delivery.yml

yml
confirm-delivery:
  title: "&8ᴏʀᴅᴇʀs -> Confirm Delivery"
  rows: 3

items:
  cancel:
    material: RED_STAINED_GLASS_PANE
    slot: 11
    name: '&#fc0404ᴄᴀɴᴄᴇʟ'
    lore:
        - '&fClick to go back'

  confirm:
    material: LIME_STAINED_GLASS_PANE
    slot: 15
    name: '&#04fc04ᴄᴏɴғɪʀᴍ'
    lore:
        - '&fClick to confirm delivery'
        - '&7(%price_receive%)'

  source-item:
    slot: 13 #You can change this in the config.yml

File: edit-order.yml

yml
edit-order:
  title: "&8ᴏʀᴅᴇʀs -> Edit Order"
  rows: 3

items:
  background:
    material: BLACK_STAINED_GLASS_PANE
    name: " "
    lore: []
    slots: 0,1,2,9,11,19,20

  source-item:
    slot: 10 #You can change this in the config.yml

  cancel-order:
    material: RED_TERRACOTTA
    name: '&#00fc88ᴄᴀɴᴄᴇʟ'
    lore:
      - '&fClick to cancel this order'
    slot: 13

  collect-items:
    material: CHEST
    name: '&#00fc88ᴄᴏʟʟᴇᴄᴛ ɪᴛᴇᴍꜱ'
    lore:
      - '&fClick to collect items'
    slot: 15

  no-collect-items:
    material: CHEST
    name: '&#00fc88ɴᴏ ᴄᴏʟʟᴇᴄᴛ ɪᴛᴇᴍꜱ'
    lore:
      - '&cNo Items to collect'
    slot: 15

  back:
    material: RED_STAINED_GLASS_PANE
    name: '&#00fc88ʙᴀᴄᴋ'
    lore:
      - '&fClick to go back'
    slot: 18

File: list-materials.yml

yml
list-materials:
  title: "&8ᴏʀᴅᴇʀs -> Select Item"
  rows: 6
  list-items: 0-44

items:
  previous-page-slot: 45
  previous-page:
    material: ARROW
    displayname: "&#00fc88ᴘʀᴇᴠɪᴏᴜꜱ"
    lore:
      - "&fClick to go to the previous page"

  search:
    material: OAK_SIGN
    slot: 50
    name: "&#00fc88sᴇᴀʀᴄʜ"
    lore:
      - "&fClick to search"
  sort:
    material: CAULDRON
    slot: 48
    name: "&#00fc88ꜱᴏʀᴛ"
    active_prefix: "&#00fc88● "
    inactive_prefix: "&f● "
    keys:
      - "alphabetical_az"
      - "alphabetical_za"
    options:
      - "Alphabetical A-Z"
      - "Alphabetical Z-A"

  filter:
    material: HOPPER
    slot: 49
    name: "&#00fc88ꜰɪʟᴛᴇʀ"
    active_prefix: "&#00fc88● "
    inactive_prefix: "&f● "
    keys:
      - "all"
      - "blocks"
      - "tools"
      - "food"
      - "combat"
      - "potions"
      - "books"
      - "ingredients"
      - "utilities"
    options:
      - "All"
      - "Blocks"
      - "Tools"
      - "Food"
      - "Combat"
      - "Potions"
      - "Books"
      - "Ingredients"
      - "Utilities"

  next-page-slot: 53
  next-page:
    material: ARROW
    displayname: "&#00fc88ɴᴇxᴛ"
    lore:
      - "&fClick to go to the next page"

File: new-order.yml

yml
order-news:
  title: "&8ᴏʀᴅᴇʀs -> New Order"
  rows: 3

items:
  cancel:
    material: RED_STAINED_GLASS_PANE
    slot: 10
    name: '&#fc0404ᴄᴀɴᴄᴇʟ'
    lore:
      - '&fClick to return'

  confirm:
    material: LIME_STAINED_GLASS_PANE
    slot: 16
    name: '&#04fc04ᴄᴏɴғɪʀᴍ'
    lore:
      - '&fClick to confirm order'
      - '&7(Total: %price%&7)'

  item:
    material: "%material_selected_item%" #Replace with a default material if needed. But the default item is stone
    slot: 12
    name: '&#00fc88ɪᴛᴇᴍ'
    lore:
      - '&fClick to choose the item'
      - '&7(%item%)'

  amount:
    material: CHEST
    slot: 13
    name: '&#00fc88ᴀᴍᴏᴜɴᴛ'
    lore:
      - '&fClick to type amount of items'
      - '&7(%amount_formatted%)'

  price:
    material: EMERALD
    slot: 14
    name: '&#00fc88ᴘʀɪᴄᴇ'
    lore:
      - '&fClick to type the price per item'
      - '&7(%price_per_item%&7)'

File: order-view.yml

yml
order-items:
  title: "&8ᴏʀᴅᴇʀs (Page %page%)"
  rows: 6
  order-items: 0-44

  items:
    previous-page-slot: 45
    previous-page:
      material: ARROW
      displayname: "&#00fc88ᴘʀᴇᴠɪᴏᴜꜱ"
      lore:
        - "&fClick to go to the previous page"

    next-page-slot: 53
    next-page:
      material: ARROW
      displayname: "&#00fc88ɴᴇxᴛ"
      lore:
        - "&fClick to go to the next page"

    refresh:
      material: PAPER
      slot: 49
      name: "&#00fc88ᴏʀᴅᴇʀs"
      lore:
        - "&fClick to refresh"

    your-orders:
      material: CHEST
      slot: 51
      name: "&#00fc88ʏᴏᴜʀ ᴏʀᴅᴇʀs"
      lore:
        - "&fClick to view your orders"

    sort:
      material: CAULDRON
      slot: 47
      name: "&#00fc88ꜱᴏʀᴛ"
      active_prefix: "&#00fc88● "
      inactive_prefix: "&f● "
      keys:
        - "most_money"
        - "most_delivered"
        - "most_recent"
        - "most_paid_per_item"
      options:
        - "Most Paid"
        - "Most Delivered"
        - "Recently Listed"
        - "Most Money Per Item"

    filter:
      material: HOPPER
      slot: 48
      name: "&#00fc88ꜰɪʟᴛᴇʀ"
      active_prefix: "&#00fc88● "
      inactive_prefix: "&f● "
      keys:
        - "all"
        - "blocks"
        - "tools"
        - "food"
        - "combat"
        - "potions"
        - "books"
        - "ingredients"
        - "utilities"
      options:
        - "All"
        - "Blocks"
        - "Tools"
        - "Food"
        - "Combat"
        - "Potions"
        - "Books"
        - "Ingredients"
        - "Utilities"

    search:
      material: OAK_SIGN
      slot: 50
      name: "&#00fc88sᴇᴀʀᴄʜ"
      lore:
        - "&fClick to search"

File: your-orders.yml

yml
your-orders:
  title: "&8ᴏʀᴅᴇʀs -> Your Orders"
  rows: 3

items:
  new-order:
    material: MAP
    slot: 0
    name: "&#00fc88ɴᴇᴡ ᴏʀᴅᴇʀ"
    lore:
      - "&fClick to create a new order"
1 image attached
Kodari AI
KodariOct 6 at 2:34 am 7
  1. Trace the current orders commands and UI flow.

  2. Rework normal GUI orders and dialog orders as separate experiences, including old-client fallback.

  3. Align GUI assets/config and the item picker with the attached designs.

  1. /orders now opens the inventory marketplace. It includes search, sorting, filters, your orders, item selection, enchantment selection, and order creation. Search, amount, and price are entered in chat while the GUI stays open; cancel returns to the menu.

  2. /dialogorders keeps the dialog flow. Clients below 1.21.6 fall back to the inventory marketplace. Dialog item sprites remain disabled below 1.21.9; when ViaVersion is absent, the server version is used for detection.

  3. The supplied GUI YAML files and dialogs/ui.yml are bundled and copied into the plugin’s gui/ and dialogs/ folders on startup. The picker uses items.yml’s existing mode: all, which dynamically includes every non-blacklisted item material available on the server—including diamond ore, blocks, and armor variants—rather than relying on a brittle static list.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
settings.gradle
Code
51 4,771
src/main/java/com/donutorders/DonutOrders.java
package com.donutorders;

import com.donutorders.command.OrderAdminCommand;
import com.donutorders.command.OrderAlertsCommand;
import com.donutorders.command.OrderCommand;
import com.donutorders.command.OrdersCommand;
import com.donutorders.data.PlayerDataManager;
import com.donutorders.dialog.OrderDialogService;
import com.donutorders.listener.InventoryListener;
import com.donutorders.listener.LuckPermsLimitListener;
import com.donutorders.listener.PlayerQuitListener;
import com.donutorders.manager.AllowedItemsManager;
import com.donutorders.manager.GUIManager;
import com.donutorders.manager.OrderLimitManager;
import com.donutorders.manager.OrderManager;
import com.donutorders.placeholder.DonutOrdersExpansion;
import com.donutorders.scheduler.FoliaScheduler;
import com.donutorders.storage.StorageManager;
import net.luckperms.api.LuckPerms;
import net.milkbowl.vault.economy.Economy;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.plugin.RegisteredServiceProvider;
import org.bukkit.plugin.java.JavaPlugin;

import java.io.File;
import java.sql.SQLException;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public final class DonutOrders extends JavaPlugin {
    private static final Pattern HEX_COLOR = Pattern.compile("(?i)&#([0-9a-f]{6})");
    private static DonutOrders instance;

    private FileConfiguration messages = new YamlConfiguration();
    private StorageManager storageManager;
    private OrderManager orderManager;
    private GUIManager guiManager;
    private OrderDialogService dialogService;
    private AllowedItemsManager allowedItemsManager;
    private OrderLimitManager orderLimitManager;
    private PlayerDataManager playerDataManager;

    @Override
    public void onEnable() {
        instance = this;
        saveDefaultConfig();
        reloadPluginConfig();

        Economy economy = setupEconomy();
        if (economy == null) {
            getLogger().severe("Vault and a Vault-compatible economy are required. Disabling DonutOrders.");
            getServer().getPluginManager().disablePlugin(this);
            return;
        }

        try {
            storageManager = new StorageManager(getDataFolder());
        } catch (SQLException exception) {
            getLogger().severe("Could not initialize order storage: " + exception.getMessage());
            getServer().getPluginManager().disablePlugin(this);
            return;
        }

        orderManager = new OrderManager(storageManager, economy);
        guiManager = new GUIManager(storageManager, orderManager);
        dialogService = new OrderDialogService(this, guiManager);
        guiManager.setDialogs(dialogService);
        allowedItemsManager = new AllowedItemsManager(this);
        allowedItemsManager.reload();
        orderLimitManager = new OrderLimitManager();
        playerDataManager = new PlayerDataManager(this);

        getServer().getPluginManager().registerEvents(new InventoryListener(guiManager), this);
        getServer().getPluginManager().registerEvents(new PlayerQuitListener(guiManager, orderLimitManager), this);
        registerCommands();
        hookOptionalPlugins();

        storageManager.loadAll(() -> {
            orderManager.runExpiryCheck();
            FoliaScheduler.runGlobalRepeating(orderManager::runExpiryCheck, 1200L, 1200L);
        });
        storageManager.startSyncTask();
    }

    private Economy setupEconomy() {
        if (!getServer().getPluginManager().isPluginEnabled("Vault")) return null;
        RegisteredServiceProvider<Economy> registration = getServer().getServicesManager().getRegistration(Economy.class);
        return registration == null ? null : registration.getProvider();
    }

    private void registerCommands() {
        OrderCommand order = new OrderCommand(dialogService);
        OrdersCommand orders = new OrdersCommand(dialogService);
        OrderAlertsCommand alerts = new OrderAlertsCommand(playerDataManager);
        OrderAdminCommand admin = new OrderAdminCommand(guiManager);
        registerCommand("order", order, order);
        registerCommand("orders", orders, orders);
        registerCommand("orderalerts", alerts, alerts);
        registerCommand("orderadmin", admin, admin);
    }

    private void registerCommand(String name, org.bukkit.command.CommandExecutor executor,
                                 org.bukkit.command.TabCompleter completer) {
        org.bukkit.command.PluginCommand command = getCommand(name);
        if (command == null) {
            getLogger().severe("Command '" + name + "' is missing from plugin.yml.");
            return;
        }
        command.setExecutor(executor);
        command.setTabCompleter(completer);
    }

    private void hookOptionalPlugins() {
        if (getServer().getPluginManager().isPluginEnabled("LuckPerms")) {
            RegisteredServiceProvider<LuckPerms> registration = getServer().getServicesManager().getRegistration(LuckPerms.class);
            if (registration != null) new LuckPermsLimitListener(orderLimitManager).register(registration.getProvider());
        }
        if (getServer().getPluginManager().isPluginEnabled("PlaceholderAPI")) {
            new DonutOrdersExpansion(this, orderLimitManager).register();
        }
    }

    public void reloadPluginConfig() {
        reloadConfig();
        File messagesFile = new File(getDataFolder(), "messages.yml");
        messages = YamlConfiguration.loadConfiguration(messagesFile);
        if (allowedItemsManager != null) allowedItemsManager.reload();
        if (dialogService != null) dialogService.reload();
        if (orderLimitManager != null) orderLimitManager.refreshAllOnline();
    }

    @Override
    public void onDisable() {
        if (storageManager != null) storageManager.close();
        if (instance == this) instance = null;
    }

    public static DonutOrders getInstance() { return instance; }
    public FileConfiguration getMessages() { return messages; }
    public StorageManager getStorageManager() { return storageManager; }
    public OrderManager getOrderManager() { return orderManager; }
    public GUIManager getGUIManager() { return guiManager; }
    public OrderDialogService getDialogService() { return dialogService; }
    public AllowedItemsManager getAllowedItemsManager() { return allowedItemsManager; }
    public OrderLimitManager getOrderLimitManager() { return orderLimitManager; }
    public PlayerDataManager getPlayerDataManager() { return playerDataManager; }

    public static String colorize(String input) {
        if (input == null || input.isEmpty()) return "";
        Matcher matcher = HEX_COLOR.matcher(input);
        StringBuffer converted = new StringBuffer();
        while (matcher.find()) {
            String hex = matcher.group(1);
            StringBuilder color = new StringBuilder("§x");
            for (char digit : hex.toCharArray()) color.append('§').append(digit);
            matcher.appendReplacement(converted, Matcher.quoteReplacement(color.toString()));
        }
        matcher.appendTail(converted);
        return ChatColor.translateAlternateColorCodes('&', converted.toString());
    }
}