mark

Make a auction plugin named NexAuction Same as given file but change lore

Kodari AI
KodariToday at 5:32 am 1
NexAuction
NexAuction is a comprehensive auction house plugin for Minecraft servers. Players can list items for auction with configurable starting prices, bid increments, and auction durations. The plugin features a searchable GUI interface with category filters, sorting options, and pagination. Players can place bids, buy items instantly at buyout prices, claim won items, and manage their active listings. Admins can configure auction taxes, minimum bid amounts, and listing limits. The plugin includes a bidding history system, automatic auction expiration handling, and full inventory management for claimed items. All messages are customizable through a language file, and the plugin supports both MySQL and SQLite storage for persistent auction data across server restarts.

Please attach the file you want NexAuction to match and specify what you’d like the lore changed to.

mark

Make as given picture

Kodari AI
KodariToday at 5:33 am 1

Please upload the picture so I can match its design and lore for NexAuction.

mark

Make same as AxAuctio

Kodari AI
KodariToday at 5:34 am 2

I’ll build NexAuction with a browsable auction GUI, Vault-backed purchases, and persistent listings. I’ll also make the listing lore configurable so you can customize it.

Built NexAuction with /ah, /ah sell <price>, and /ah mine. Listings persist across restarts, expired items can be reclaimed, and the GUI lore is configurable in config.yml.

It requires Vault and an economy plugin. This is an AxAuctions-style starting point, not a feature-for-feature copy; send the exact lore you want and I can update it.

mark

Add shulker preview buy confrim expired item view ah history gui also

Kodari AI
KodariToday at 5:36 am 3
  1. Add shulker previews and purchase confirmation.

  2. Add an expired-items view and auction history GUI.

Added purchase confirmation, shulker previews, an expired-items GUI, and a persistent personal sales and purchases history.

Use /ah expired or /ah history, or open them from the auction menu. Right-click a shulker listing to preview its contents.

mark

Build a complete, high-performance Minecraft auction house plugin named NexAuction for Paper/Spigot (targeting modern Minecraft versions such as 1.20.4–1.21.x, with clean separation between API/logic and version/NMS-safe item/GUI handling).

1. Core Concept & UX Style

Create a clean, modern, responsive Auction House plugin (NexAuction) inspired by competitive survival/Lifesteal server auction GUIs. It must support paginated chest/inventory GUIs, custom item lore formatting (price, seller, expiration timer, custom upgrades/trims/enchantments), live refresh, sorting, currency filtering, sign-based search input, and a "Deleted Items" recovery/expiration menu.

2. Commands & Tab-Completion

Implement /ah (with aliases /auction, /auctionhouse) and full tab-completion:

  • /ah or /ah open — Opens the main Auction House GUI (Page 1/X).
  • /ah sell <price> [amount] — Lists the held item (or specified stack amount) on the auction house at <price>. Support formatted numbers/shorthand if configured (e.g., 100k, 100M) and validate minimum/maximum listing prices, listing limits, and blacklisted items.
  • /ah search [query] — Opens the sign search UI directly (or filters immediately if a query argument is provided).
  • /ah deleted — Opens the Deleted Items menu showing expired/removed items that are permanently deleted once their retention timer runs out (with options to reclaim/restore if allowed by config/permission).
  • Optional useful subcommands to include cleanly: /ah reload, /ah expired / /ah claim (if expired items separate from deleted items), and /ah help.

3. Main Auction House GUI (Auction House | Page: X/Y)

Design a 54-slot (6-row) chest GUI with:

  • Top 45 slots (Rows 1–5): Active auction listings for the current page.

- Each listing item displays its original item/enchantments/trims/custom NBT, plus appended lore lines showing: - Price (e.g., Price: 100M or Price: 350K) - Seller (e.g., Seller: ...) - Expiration countdown (e.g., Expires: 6d 21h 22m 10s) - Action hint (e.g., Click to buy, or option to cancel/retrieve if owned by the viewer).

  • Bottom Row (Row 6 / Slots 45–53) Control Bar:

- Previous Page / Next Page buttons (with clear page indicator Page: X/Y in the GUI title). - Refresh Auction button (Click to Refresh) — reloads current listings/page without closing the menu. - Statistics book/item — displays: - Active Auctions (Global Items: X, My Items: X/Y) - My Earnings (All Time) (Sold Items: X, Money Made: ...) - My Spendings (All Time) (Purchased Items: X, Money Spent: ...) - Quick note/action (Sell items with /ah sell). - Sorting button (Auction Sorting) — cycles through sort modes on left-click and resets to default on Shift+Click: - Newest to oldest - Oldest to newest - Cheapest to priciest - Priciest to cheapest - My Items / Personal button — opens the player's personal listings/management view (My Items | Page: X/Y). - Currency filter button (Currency) — cycles currency/listing filter (e.g., All, or specific currencies/economy types if multi-currency is configured). - Search button (Search) — shows Current Search: --- (or active search term) and opens an Edit Sign Message prompt (Write in the first line to search!) on left-click, or clears the search on Shift+Click.

4. My Items & Deleted Items GUIs

  • My Items GUI (My Items | Page: X/Y):

- Shows the player's active listings, statistics summary, currency filter, search button (with sign input), sorting button, and a Main Page / Back button (Click for Main Page).

  • Deleted Items GUI (Deleted Items ! Page: X/Y):

- Displays items whose auction/claim timer expired and are pending permanent deletion. - Includes an Information item explaining: "This menu lists all the deleted items. Items are deleted once their timer runs out."

5. Economy, Concurrency & Data Persistence

  • Integrate with Vault for economy transactions (and design a clean EconomyProvider interface so custom currencies/shards/coins can also be hooked easily).
  • Prevent item duplication and race conditions using atomic database/cache locks when two players try to buy or cancel the same listing simultaneously.
  • Refund buyer money if a purchase fails mid-transaction; safely deliver items to player inventory or overflow/claim storage if inventory is full.
  • Persist listings, player stats (earnings, spendings, sold/purchased counts), and deleted/expired items in SQLite (default) and MySQL/MariaDB, with asynchronous I/O and thread-safe GUI updates on the main server thread.

6. Configuration & Deliverables

Provide:

  1. Clean package structure (com.nexauction...), plugin.yml, config.yml, and messages.yml (supporting MiniMessage and/or legacy & color codes).
  2. Full implementation of the core classes: main plugin class, command + tab completer, database manager, economy hook, auction manager (expiration & deletion scheduler), sign input handler, and GUI managers/listeners.
  3. Clear setup notes on building with Maven/Gradle and testing purchase, search, sorting, pagination, and expiration flows.
Kodari AI
KodariToday at 5:52 am 4

I’ll extend the existing menus and commands first, preserving the current listings and history. The database and transaction changes need special care because Vault payments and item delivery cannot be committed as one database transaction.

Extended NexAuction with sign search, sorting, live-refreshing menus, statistics, deleted-item retention, price limits, item blacklists, partial-stack sales and tab completion. Existing confirmation, shulker preview and history menus remain available.

Still missing from the requested complete build: SQLite/MySQL storage and asynchronous I/O, a separate economy-provider API, multi-currency support, overflow claim storage, and comprehensive crash-safe transaction handling. Data still uses synchronous YAML storage; purchases currently require inventory space.

Install Vault and an economy provider to test. Use Compile in Kodari, then test selling, searching, sorting, purchasing and expiration on a test server.

mark

It's ok but make I can edit every gui In gui folder mainmenuyml confirmgui yml shulker view yml

Kodari AI
KodariToday at 6:01 am 4

I’ll add editable YAML files in plugins/NexAuction/gui/ for the auction menus, confirmation screen, and shulker preview. Button positions, materials, names, lore, titles, and listing slots will be configurable and reload with /ah reload.

Added editable GUI files in plugins/NexAuction/gui/:

  • mainmenu.yml — auction, personal, deleted and history menus

  • confirmgui.yml — purchase confirmation

  • shulkerview.yml — shulker preview

You can edit titles, slots, button materials, names and lore. Use /ah reload to apply changes; reopen a menu after changing its size. Existing listing and history lore is carried over when the files are first created.

mark

I want given file features gui and all

Kodari AI
KodariToday at 6:11 am 2

Please upload the file you want NexAuction to match. I’ll use it to reproduce its features and GUIs while keeping NexAuction’s name.

mark

I ha uploaded

Kodari AI
KodariToday at 6:12 am 4

The upload contains AxAuctions configuration files and GUI layouts. I’ll start by matching the uploaded main-menu styling while preserving NexAuction’s existing auction controls.

Updated the default main-menu styling based on your uploaded GUI and added support for its &#RRGGBB colors.

The uploads are AxAuctions configuration files, not its implementation. The remaining GUIs and features are not yet matched, including custom currencies, categories, Discord webhooks and database options. Existing plugins/NexAuction/gui/mainmenu.yml files won’t be overwritten by the new defaults.

Kodari can make mistakes. Review important code before using.
Files
guis
src
build.gradle
categories.yml
config.yml
currencies.yml
discord.yml
download (1).webp
download (2).webp
download.webp
manifest.kod
settings.gradle
Code
25 2,391
src/main/java/com/nexauction/NexAuction.java
package com.nexauction;

import com.cryptomorin.xseries.XMaterial;
import de.rapha149.signgui.SignGUI;
import de.rapha149.signgui.exception.SignGUIVersionException;
import net.milkbowl.vault.economy.Economy;
import net.milkbowl.vault.economy.EconomyResponse;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.OfflinePlayer;
import org.bukkit.block.ShulkerBox;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.inventory.InventoryClickEvent;
import org.bukkit.event.inventory.InventoryDragEvent;
import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.InventoryHolder;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.BlockStateMeta;
import org.bukkit.inventory.meta.ItemMeta;
import org.bukkit.plugin.RegisteredServiceProvider;
import org.bukkit.plugin.java.JavaPlugin;

import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import java.util.HashMap;
import java.util.Collections;
import java.util.Comparator;
import java.util.Locale;
import java.util.stream.Collectors;

public final class NexAuction extends JavaPlugin implements Listener {
    private final Map<UUID, Listing> listings = new LinkedHashMap<>();
    private final Map<UUID, Sale> history = new LinkedHashMap<>();
    private Economy economy;
    private File dataFile;
    private final Map<UUID, String> searches = new HashMap<>();
    private final Map<UUID, Integer> sorts = new HashMap<>();
    private YamlConfiguration mainGui;
    private YamlConfiguration confirmGui;
    private YamlConfiguration shulkerGui;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        loadGuiConfigs();
        RegisteredServiceProvider<Economy> provider = getServer().getServicesManager().getRegistration(Economy.class);
        if (provider == null) {
            getLogger().severe("Vault needs an installed economy provider. Disabling NexAuction.");
            getServer().getPluginManager().disablePlugin(this);
            return;
        }
        economy = provider.getProvider();
        dataFile = new File(getDataFolder(), "listings.yml");
        loadListings();
        getServer().getPluginManager().registerEvents(this, this);
        getServer().getScheduler().runTaskTimer(this, () -> {
            Map<UUID, Listing> removed = new LinkedHashMap<>();
            listings.values().removeIf(l -> {
                boolean delete = l.expired() && System.currentTimeMillis() - l.expires >= Math.max(1, Math.min(87600, getConfig().getLong("deleted-retention-hours", 168))) * 3600000L;
                if (delete) removed.put(l.id, l);
                return delete;
            });
            if (!removed.isEmpty() && !saveListings()) listings.putAll(removed);
            for (Player player : Bukkit.getOnlinePlayers()) {
                Inventory top = player.getOpenInventory().getTopInventory();
                if (top.getHolder() instanceof Menu) {
                    Menu menu = (Menu) top.getHolder();
                    if (menu.mode != Mode.CONFIRM && menu.mode != Mode.PREVIEW) refresh(player, menu);
                }
            }
        }, 20L, 20L);
    }

    @Override
    public void onDisable() {
        if (dataFile != null) saveListings();
    }

    private String color(String text) {
        java.util.regex.Matcher matcher = java.util.regex.Pattern.compile("(?i)&#([0-9a-f]{6})").matcher(text);
        StringBuffer result = new StringBuffer();
        while (matcher.find()) {
            StringBuilder replacement = new StringBuilder("§x");
            for (char digit : matcher.group(1).toCharArray()) replacement.append('§').append(digit);
            matcher.appendReplacement(result, java.util.regex.Matcher.quoteReplacement(replacement.toString()));
        }
        matcher.appendTail(result);
        text = result.toString();
        return ChatColor.translateAlternateColorCodes('&', text);
    }

    private void message(Player player, String text) {
        player.sendMessage(color("&6&lNexAuction &8» &r" + text));
    }

    @Override
    public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
        if (args.length == 1 && args[0].equalsIgnoreCase("reload")) {
            if (!sender.hasPermission("nexauction.admin")) {
                sender.sendMessage(color("&cYou don't have permission."));
                return true;
            }
            reloadConfig();
            loadGuiConfigs();
            sender.sendMessage(color("&aNexAuction configuration reloaded."));
            return true;
        }
        if (!(sender instanceof Player)) {
            sender.sendMessage("Only players can use this command.");
            return true;
        }
        Player player = (Player) sender;
        if (!player.hasPermission("nexauction.use")) {
            message(player, "&cYou don't have permission.");
            return true;
        }
        if (args.length == 0 || args.length == 1 && args[0].equalsIgnoreCase("open")) {
            open(player, false, 0);
        } else if (args.length == 1 && args[0].equalsIgnoreCase("mine")) {
            open(player, true, 0);
        } else if (args.length == 1 && (args[0].equalsIgnoreCase("expired") || args[0].equalsIgnoreCase("deleted") || args[0].equalsIgnoreCase("claim"))) {
            openList(player, Mode.EXPIRED, 0);
        } else if (args.length == 1 && args[0].equalsIgnoreCase("history")) {
            openList(player, Mode.HISTORY, 0);
        } else if (args[0].equalsIgnoreCase("search")) {
            if (args.length == 1) search(player, Mode.BROWSE);
            else { searches.put(player.getUniqueId(), String.join(" ", java.util.Arrays.copyOfRange(args, 1, args.length))); openList(player, Mode.BROWSE, 0); }
        } else if ((args.length == 2 || args.length == 3) && args[0].equalsIgnoreCase("sell")) {
            sell(player, args[1], args.length == 3 ? args[2] : null);
        } else {
            message(player, "&e/ah &7- Browse listings");
            message(player, "&e/ah sell <price> &7- Sell the item in your hand");
            message(player, "&e/ah mine &7- Manage or reclaim your listings");
            message(player, "&e/ah expired &7- Reclaim expired items");
            message(player, "&e/ah history &7- View your purchases and sales");
        }
        return true;
    }

    @Override
    public List<String> onTabComplete(CommandSender sender, Command command, String alias, String[] args) {
        if (args.length != 1) return Collections.emptyList();
        List<String> options = new ArrayList<>(java.util.Arrays.asList("open", "sell", "search", "mine", "deleted", "expired", "claim", "history", "help"));
        if (sender.hasPermission("nexauction.admin")) options.add("reload");
        String prefix = args[0].toLowerCase(Locale.ROOT);
        return options.stream().filter(s -> s.startsWith(prefix)).collect(Collectors.toList());
    }

    private void sell(Player player, String input, String amountInput) {
        double price;
        try {
            String value = input.toLowerCase(Locale.ROOT);
            double multiplier = 1;
            if (getConfig().getBoolean("allow-price-suffixes", true) && !value.isEmpty()) {
                char suffix = value.charAt(value.length() - 1);
                if (suffix == 'k' || suffix == 'm' || suffix == 'b') {
                    multiplier = suffix == 'k' ? 1000 : suffix == 'm' ? 1000000 : 1000000000;
                    value = value.substring(0, value.length() - 1);
                }
            }
            price = Double.parseDouble(value) * multiplier;
        } catch (NumberFormatException ex) {
            message(player, "&cEnter a valid price.");
            return;
        }
        if (!Double.isFinite(price) || price <= 0 || price < getConfig().getDouble("minimum-price", 1) || price > getConfig().getDouble("maximum-price", 1000000000000.0)) {
            message(player, "&cPrice is outside the allowed range.");
            return;
        }
        int digits = economy.fractionalDigits();
        if (digits >= 0 && digits <= 8 && java.math.BigDecimal.valueOf(price).stripTrailingZeros().scale() > digits) {
            message(player, "&cThat price has more decimal places than the economy supports.");
            return;
        }
        ItemStack item = player.getInventory().getItemInMainHand();
        if (item.getType().isAir() || item.getAmount() <= 0) {
            message(player, "&cHold an item to sell.");
            return;
        }
        if (getConfig().getStringList("blacklisted-items").stream().anyMatch(s -> s.equalsIgnoreCase(item.getType().name()))) {
            message(player, "&cThat item cannot be listed.");
            return;
        }
        int amount = item.getAmount();
        if (amountInput != null) {
            try { amount = Integer.parseInt(amountInput); } catch (NumberFormatException ex) { message(player, "&cInvalid amount."); return; }
            if (amount < 1 || amount > item.getAmount()) { message(player, "&cYou do not hold that amount."); return; }