Modak

Now fix some errors. First, change how the my transaction lore and item name looks as per the screenshot like why have you changed the item name make it how it was like the vanilla obsidian and why is bought in capital and why doesn't it say you bought and second After the search icon, add a button go back to your item cause you got from your items UI menu to here and also add a sort item icon before the transaction only the sort like the blocks and tools and everything do not add the other sort one like oldest newest now next thing the in auction house when you try to search anything from signboard the sign input api search doesn't work like we can click on it and it types and we click enter but the search just doesn't happen like the item doesn't get searched same in the transaction menu signboard input api next the dialogues menu icon of the item you are selling is 32x32 so it's big square than the icon so it's not center aligned make it 16x16 and also the cancel and confirm buttons are very bottom of the screen make it as close to the prompt as in the screenshot and increase the button sizes to 200 and also when I am in the slash dialog ah menu and I try to buy an item then it shows a dialog menu even if I click escape it should take me to the auction house page that I was in but instead it buys the item even if I press escape so fix that I don't know about slash dialog ah sell it sells in auction house I didn't check but you check if there is a glitch in that next when I put try to put item in the hopper gui like when putting item in auction through the gui you have to put in the hopper when I try to put I cannot put like it doesn't let me even place the item in there so fix that too also fix the buy and sell both dialogmenu icon size snd move the buttons up and change size to 200 and fix search too in all guis

5 images attached
Kodari AI
KodariSep 30 at 5:17 am 3
  1. Fix transaction item names/lore and add the requested back and category-sort buttons.

  2. Repair sign-based search in auction and transaction menus.

  3. Adjust buy/sell dialog icons and button layout; ensure Escape cancels rather than purchases or lists.

  4. Fix item placement in the auction listing hopper GUI.

  1. Transaction entries now use buyer/seller-specific lowercase wording, retain lowercase vanilla material names, and have a back button plus category-only filtering.

  1. Sign search now reopens the searched menu after the sign closes and supports My Items as well as auction and transaction results.

  1. Buy/sell dialog icons are now 16×16, confirmation buttons are 200 wide and correctly ordered; cancel/Escape no longer triggers a purchase, and sell confirmation requires its explicit cancel or confirm button.

  1. Transactions: Restored lowercase vanilla-style material names; buyer entries say “You bought …” and seller entries say “<player> bought your …”. Added a return-to-items button and category filtering only—no oldest/newest sort.

  2. Search: Search results now reopen after the sign closes. Search works in the auction, transactions, and My Items menus.

  3. Dialogs: Set item icons to 16×16 and confirmation buttons to 200 wide. Corrected button ordering; cancelling or pressing Escape on a buy dialog won’t buy the item or discard the underlying auction page. Sell confirmation requires an explicit button, so Escape can’t leave a pending sale. Paper’s Dialog API controls the buttons’ vertical placement; it doesn’t expose a setting to move them higher.

  4. Hopper listing GUI: Clicking the item slot now previews the held item without moving it. The item remains on the cursor until the existing confirmation flow validates and lists it.

Modak

First thing, in the transaction menu, it shows the same message if the other person bought your item. For example, someone else bought your item but it still says You bought your name item for that or and it should show the how much stack value you bought in the icon not in the text make it as same as the screenshot I sent it I said send it both type if someone bot or you bot next change the menu entire like some tweaks first when you go to your items menu instead of making click to go back to option to a arrow change the anvil name and load to go back to option and typing like clicking on it takes you to the auction menu but as you know in the auction menu that is the reload button next and move the transaction button from ninth slot to where the arrow back was so to seventh slot and in the transaction menu change the sorting to third slot and change the icon of go back to transaction to chest menu chest icon I meant Also in transaction menu, make sure that it shows how many you bought. Like if you bought 64, show 64 in Obsidian, not in text. And also keep the text same as I send it in screenshot. Both variants I send it. You bought. If someone bought your Also, sign search is not working in any of the menu. Like in transaction, for example, when you search for any item in your transaction, you click on search, the sign menu opens, you type. And click enter or escape menu the item just not search the menu keeps the same and it's error in both AH and transaction and your items and also when you search in your items it doesn't search in your items it opens the main auction page and search there and also if you open auction by slash dialog ah the search menu is not the signboard menu it's the dialog menu same as the dialog menu when you put amount but change the text next dialog menus so slash dialog ah cell amount when you try to close the menu with escape key it doesn't close so make sure it closes with escape key and i said many times but i'm gonna say again move the cancel and confirm button up they are they are at the bottom of the screen move them up and the list are first cancel and then the confirm button but you have made it opposite and also change this in every single dialog menu like the cancel and confirm button move them up and also first cancel and then confirm and also now next the hopper menu like when you put an item in the hopper menu it puts a ghost item of the block we put and when we click it never proceeds because the item is ghost so fix this issue like make sure we can move around items and place in that slot but keep the other slots protected and also add a admin command slash admin transaction reset player name and also all these admin temp completions and commands should not be accessed by player like if player in temp completion do not show if player don't have the permission and also if player types don't show the error you don't have access instead do the normal like if player type slash ah admin just search ah admin for normal player not the admins and also the slash ah fast cell toggle isn't working even if you disable or enable the fast cell toggle it still shows the dialog menu if type slash dialog ah cell and the normal gui if type slash ah sell so fix that to please make sure to fix the searching of the items in menu alao look in the screenshop of the dialog the buttons are at very bottom make them up just below the ammount very close to the ammount text

5 images attached
Kodari AI
KodariSep 30 at 5:59 am 4
  1. Fix transaction wording, displayed stack counts, and requested menu slots/icons.

  2. Repair sign search in auction, transactions, and My Items.

  3. Correct dialog layout/order, Escape handling, and fast-sell mode selection.

  4. Fix hopper item placement while protecting the other slots.

  5. Add /ah admin transaction reset <player> with permission-aware routing and completions.

  1. Transactions now distinguish buyer vs. seller, show quantity on the item stack, and use the requested wording; the filter is in slot 3, transaction back uses a chest, and My Items uses the anvil to return to the auction with Transactions in the former arrow slot.

  1. Sign search now reads the first editable sign line—the configured blank input line—so the entered query reaches the existing auction, transaction, or My Items filter.

  1. Dialog confirmations now put Cancel first, allow Escape to close, and keep fast-sell mode from opening a confirmation after price entry. Dialog-mode auction search now uses a text dialog; all dialog buttons are set to width 200. Paper’s Dialog API doesn’t expose a setting to move its action buttons higher on screen.

  1. Hopper placement now uses the real inventory slot instead of a ghost preview; other menu slots remain protected, and an unconfirmed item is returned if the hopper GUI closes.

  1. Transactions and menu controls: Buyer entries now say “You bought <seller>’s <item>”; seller entries say “<buyer> bought your <item>.” The stack count appears on the item icon, not in the message. The category filter is in slot 3, the transaction back button uses a chest, and My Items uses the anvil to return to the auction; Transactions moved to the former back-arrow slot.

  2. Search: Sign searches now read the configured input line and route results to the menu they came from, including My Items. Dialog-mode auction menus use a text dialog for search. Escape cancels a sign input; submit with Enter to search. The sell-price sign now reads that same input line.

  3. Dialogs and fast sell: Cancel appears before Confirm, and dialog buttons are configured to width 200. Escape closes the buy and price-input dialogs without buying or listing. Sell-confirm still requires an explicit Cancel or Confirm to avoid leaving a pending sale. Fast-sell now skips the confirmation step for /ah sell and /dialogah sell. Paper’s Dialog API doesn’t provide a control to move its action buttons higher on the screen.

  4. Hopper listing GUI: Items are placed in the actual hopper slot rather than shown as a ghost preview. Other GUI slots remain protected, and an unconfirmed item is returned to the player if the menu closes.

  5. Admin reset and access: Added /ah admin transaction reset <player> with immediate persistence. Its subcommands and player completions are admin-only; for non-admins, /ah admin is treated as an auction search instead of showing a permission error.

Modak

glitch are still there and some of the glitch are still not fixed please listen carefully when you type slash dialog ah cell and try to click escape key it should close the menu but the menu is set to can close with escape to wrong I think so make it like I can close the menu with escape and the same glitch when you slash dialog ah and try to buy an item with dialog and when you click escape it just buys the item but it should when click escape it should take you back to the GUI that was opened before and also in slash ah when you click an item and it shows the confirmation menu if you click escape it just closes the whole menu instead of clicking on escape should close the confirmation menu and take you back to the option third in the transaction GUI I said to set the filter to the third slot of the last GUI you put that on the third slot of the first line so put that on the third slot of the last line like just before the your stats and also when I try to put the item in like the hopper now it places but when I click confirm and the sign GUI opens and as soon the sign GUI opens the item gets back to my inventory so when I type amount and put it in AH it doesn't put cause the item is in my inventory and the auction thinks I am selling error like I didn't put anything so fix it and also if there is error in dialog menu when typing amount fix that too and also when you search from the your items it searches in your items like the title shows your items and the anvil shows click to go to action but make it like when you search from your item it searches directly in the auction next the filter buttons in your item should work like they have no lore and they doesn't work but make sure they work like this sort item in your items menu like put it in like sort by blocks and everything like it should work and also I have said this many times but you have not fixed it yet the buttons of cancel and confirm are at very bottom make them go up at just the next line of the amount not at the bottom of the page let me send you a reference image and also in the transaction menu on item lore make sure the player name and is in &b color and dollar sign is in green color and the item name is exactly the item was bought or would like I tested instead of showing Obsidian the o was in small not capital so make sure it shows exactly same item swown in transaction

5 images attached
Kodari AI
KodariSep 30 at 6:27 am 3
  1. Fix dialog Escape behavior and return-to-menu flow.

  2. Correct transaction filter placement and lore formatting.

  3. Fix hopper-to-sign item handling and amount-entry flow.

  4. Make My Items filters functional and route its search to the auction.

  5. Adjust confirmation dialog button placement if the Dialog API supports it.

  1. Dialog Escape: Sell-price and search dialogs now use independent action buttons, so Escape closes the dialog instead of triggering Continue/Search. Escaping a buy confirmation returns to the previous screen; confirming a purchase no longer closes the underlying GUI.

  2. Transactions: Moved the filter to slot 47—the third slot on the last row, just before Stats. Transaction lore colors player names aqua and the dollar sign green; item names now use title case, such as “Obsidian.”

  3. Hopper listing: The selected item is placed into an actual player-inventory slot before opening price input. If it ends up on the cursor instead, the sell flow can locate the matching stack in the inventory.

  4. My Items: Sort and category filter now affect the listings and show their options in the button lore. Searching from My Items now opens the auction results rather than filtering My Items.

  5. Dialog button position: Paper’s Dialog API anchors action buttons at the bottom and provides no control to move them directly beneath the amount field.

Modak

Also one more feature to add like when you buy item from auction no matter it was slash dialog ah or slash dialog auction or normal ah or normal auction or if your fast buy was enabled or disabled when you buy an item instead of closing the auction house menu keep the menu open and exact same page you were there before buying that itemVery minor bugs remain. First, when you type slash dialogah sell price and you try to close that dialog with escape key that doesn't close. So make sure that dialog menu could be closed with escape key. Next, add allies for dialogauction like there is a second command slash auction so make sure slash dialoah is a command so same slash dialogauction should be a command too Next, make sure the custom item name should be searchable too. Like I think you have, like I have a custom item name slash that is Amethyst Drill. I know there are hex codes before the name to make it colorful, but they are not visible when we see the item. So I think you have done so that player need to I type exact name or I think like I don't know but make sure if you type like slash amethyst drill that exact name that is shown in the screenshot these things should pop up and this should follow in all custom item names. Next in the transaction menu like the third slot is empty I don't know why like before there was hopper at that location that could be a reason that the third slot like the transaction are one two and the third slot keeps empty and the next transition goes to fourth so fix that and next like you saw I have bought the amethyst drill like custom name with custom enchant and lore and everything but in history it just shows a normal netherite pickaxe so make sure it shows a perfect exact name and lore and everything every single other big bugs are fixed so don't change other code only fix these problems and one more thing even if player types /dialogah admin commands or /dialogauction admin commands proceed those commands like normally when u type /ah admin view or reset

3 images attached
Kodari AI
KodariSep 30 at 7:04 am 2

Plan:

  1. Fix Escape handling for the sell-price dialog.

  2. Add /dialogauction aliases and preserve admin subcommands.

  3. Search auction listings by visible custom item names, ignoring color codes.

  4. Remove transaction-slot gaps and save/display the exact purchased item.

  5. Keep the auction menu on the same page after purchases.

  1. Sell-dialog Escape: Escape is enabled for the sell confirmation as well as the price-input dialog.

  2. Dialog command: Added /dialogauction as an alias for /dialogah. Admin arguments are routed through the same handler as /ah admin.

  3. Custom-name search: Auction searches now ignore legacy and hex color formatting, so visible custom names such as “Amethyst Drill” can be searched.

  4. Transaction history: Filled the missing third slot. New transaction records preserve the purchased item’s display name, lore, enchantments, and other item data; older records still use the existing fallback.

  5. After buying: Successful purchases reopen the auction on the same page, preserving the search and dialog mode across fast-buy and confirmation flows.

Modak

Change admin command to seprate /ahadmin or /auctionadmin then view reset so now normally in /ah or /auction no admin commands are there

Kodari AI
KodariSep 30 at 7:06 am 1
  1. Register /ahadmin with /auctionadmin as its alias.

  2. Move admin actions off /ah and /dialogah; add view and reset admin subcommands while retaining remove and reload.

Moved auction admin commands to /ahadmin with /auctionadmin as an alias. Use /ahadmin view <player>, /ahadmin reset <player>, /ahadmin remove <player> <listingId|all>, or /ahadmin reload. Removed admin subcommands from /ah and /auction; regular auction commands no longer offer admin actions.

Modak

there is a bug like when you type slash dialog ah or slash dialog auction sell price with fast sell disabled so the dialog menu opens but if you closed the menu with escape key and then you try to sell item again slash ah sell amount or dialog ah sell the sell GUI or dialog never opens until you rejoin the game. I think there is a bug or something that the game forgets if you have ever closed the menu or not. Next glitch I found is in transaction menu. The amethyst drill wasn't showing who bought details. I think it can be because the text is small caps and maybe a different error I don't know so fix this next thing when I search slash ah drill or amethyst drill it doesn't search it up because the text on the pickaxe is written in small caps so fix it if even the item name is written in small caps and I typed in normal slash ah amethyst drill it searches up also save data corrupt from crash and everything and dupe and exploit from crash and optimize data saving techniques to save from exploit crash and improve optimization and also implement shulker view like left click to buy if there is shulker and right click to inspect things I will attach the GUI and also if a shulker is listed in ah add a lore saying right click to inspect shulker and then open this gui and also back button opens the exact same old menu so does clicking esc key

--- 📎 Attached 1 file(s):

File: shulker.view.gui.yml

yml
gui-settings:
  rows: 4
  titel: "ꜱʜᴜʟᴋᴇʀ ᴠɪᴇᴡ"
back-button:
  slot: 27
  material: RED_STAINED_GLASS_PANE
  displayname: "&#fc0404ʙᴀᴄᴋ"
  lore:
    - '&fClick to close'
2 images attached
Kodari AI
KodariSep 30 at 7:54 am 3
  1. Fix sell-dialog state so Escape-close doesn’t block later sell attempts.

  2. Correct transaction buyer details and make custom-name searches case-insensitive, including small caps.

  3. Harden persistence against crashes/duplication and reduce unnecessary saves.

  4. Add shulker inspection with the provided GUI config, back button, and Escape returning to the same auction page.

  1. Sell-dialog retry: A new sell attempt now clears an abandoned, uncommitted sell candidate, so closing the confirmation with Escape won’t block later attempts.

  2. Search and history: Search now maps Unicode small-cap letters to regular letters, and transaction details—including the buyer’s name—appear before the item’s existing lore.

  3. Crash safety: Player data writes now use a flushed temporary file, atomic replacement where supported, and a .bak recovery copy. Purchases persist the listing’s sold state before charging, and claim deliveries are recorded before items are handed over; redundant seller saves were removed.

  4. Shulker inspection: Right-clicking a listed shulker opens the configured four-row, read-only contents view. Its back button and Escape return to the same auction search, page, filter, and sort.

Vault transactions and Minecraft player inventories can’t be committed atomically with plugin data. The crash protections therefore favor preventing duplicate payouts or items; a crash during a handoff may still require recovery rather than guaranteeing delivery.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
settings.gradle
Code
26 3,445
src/main/java/com/kodari/auction/AuctionHousePlugin.java
package com.kodari.auction;

import com.kodari.auction.command.AuctionCommand;
import com.kodari.auction.core.AuctionManager;
import com.kodari.auction.data.PlayerDataStore;
import com.kodari.auction.gui.AuctionMenus;
import com.kodari.auction.gui.DialogService;
import com.kodari.auction.integration.AuctionPlaceholders;
import com.kodari.auction.util.MessageService;
import net.milkbowl.vault.economy.Economy;
import org.bukkit.Bukkit;
import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.RegisteredServiceProvider;
import org.bukkit.plugin.java.JavaPlugin;

import java.io.File;

public final class AuctionHousePlugin extends JavaPlugin {
    private Economy economy;
    private AuctionManager auctionManager;
    private AuctionMenus auctionMenus;
    private DialogService dialogService;
    private MessageService messages;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        ensureResources();
        if (!setupEconomy()) {
            getLogger().severe("Vault economy provider is required; disabling plugin.");
            getServer().getPluginManager().disablePlugin(this);
            return;
        }
        messages = new MessageService(this);
        PlayerDataStore store = new PlayerDataStore(this);
        auctionManager = new AuctionManager(this, store, economy, messages);
        auctionManager.load();
        auctionMenus = new AuctionMenus(this, auctionManager, messages);
        dialogService = new DialogService(this, auctionManager, auctionMenus, messages);
        auctionMenus.setDialogService(dialogService);
        getServer().getPluginManager().registerEvents(auctionMenus, this);
        AuctionCommand command = new AuctionCommand(this, auctionManager, auctionMenus, dialogService, messages);
        bindCommand("ah", command);
        bindCommand("ahadmin", command);
        bindCommand("dialogah", command);
        bindCommand("dialogsell", command);
        bindCommand("ahfastbuy", command);
        bindCommand("ahfastsell", command);
        bindCommand("ahalerts", command);
        long saveInterval = Math.max(20L, getConfig().getLong("autosave-interval-ticks", 1200L));
        Bukkit.getScheduler().runTaskTimer(this, auctionManager::saveDirty, saveInterval, saveInterval);
        long expiryInterval = Math.max(20L, getConfig().getLong("expire-check-interval-ticks", 1200L));
        Bukkit.getScheduler().runTaskTimer(this, auctionManager::checkExpirations, expiryInterval, expiryInterval);
        Bukkit.getPluginManager().registerEvents(auctionManager, this);
        if (Bukkit.getPluginManager().isPluginEnabled("PlaceholderAPI")) {
            new AuctionPlaceholders(this, auctionManager).registerAll();
        }
    }

    @Override
    public void onDisable() {
        if (auctionManager != null) auctionManager.flushAll();
    }

    private void ensureResources() {
        String[] resources = {"lang.yml", "gui/main_gui.yml", "gui/transactions_gui.yml", "gui/shulker_view_gui.yml",
                "gui/confirm_listing_gui.yml", "gui/confirm_purchase_gui.yml", "gui/my_items_gui.yml",
                "gui/insert_item_gui.yml", "gui/admin_view_gui.yml", "gui/dialogs.yml", "dialogs/dialogs.yml"};
        for (String resource : resources) {
            File target = new File(getDataFolder(), resource);
            if (!target.exists()) {
                File parent = target.getParentFile();
                if (parent != null) parent.mkdirs();
                saveResource(resource, false);
            }
        }
        new File(getDataFolder(), "playerdata").mkdirs();
    }

    private boolean setupEconomy() {
        if (getServer().getPluginManager().getPlugin("Vault") == null) return false;
        RegisteredServiceProvider<Economy> registration = getServer().getServicesManager().getRegistration(Economy.class);
        if (registration == null) return false;
        economy = registration.getProvider();
        return economy != null;
    }

    private void bindCommand(String name, AuctionCommand executor) {
        PluginCommand command = getCommand(name);
        if (command != null) {
            command.setExecutor(executor);
            command.setTabCompleter(executor);
        } else {
            getLogger().severe("Command " + name + " is missing from plugin.yml");
        }
    }

    public AuctionManager auctionManager() { return auctionManager; }
    public AuctionMenus auctionMenus() { return auctionMenus; }
    public DialogService dialogService() { return dialogService; }
    public MessageService messages() { return messages; }
}