notxdgg

xDAuction โ€“ Premium Auction House Plugin (Complete Prompt)

Create a premium-quality Minecraft Auction House plugin named xDAuction. It must be an original implementation inspired by AxAuctions, not a copy of its source code. The plugin should be optimized for large public servers, support Paper 1.21.11 & Folia, use Java 21+, and be production-ready.

---

Plugin Information

Plugin Name: xDAuction

Package

dev.xd.auction

Main Class

dev.xd.auction.XDAuction

---

Platform

Paper 1.21.11

Folia

Java 21+

---

Dependencies

Soft Depends

Vault

PlaceholderAPI

LuckPerms

xDLink

Database

SQLite

MySQL

MariaDB

H2

Network

Redis (Optional)

Velocity

BungeeCord

Connection Pool

HikariCP

---

Commands

/ah /auction /auctionhouse

Aliases

/auc

Admin

/ah reload /ah purge /ah inspect /ah remove /ah recover /ah history /ah blacklist /ah forceexpire /ah forceclaim

---

Permissions

xdauction.use xdauction.sell xdauction.buy xdauction.admin

xdauction.bypass.blacklist

xdauction.limit.1 xdauction.limit.2 xdauction.limit.3 xdauction.limit.4 xdauction.limit.5 xdauction.limit.6 xdauction.limit.7 xdauction.limit.8 xdauction.limit.9 xdauction.limit.10 xdauction.limit.11 xdauction.limit.12 xdauction.limit.13 xdauction.limit.14 xdauction.limit.15 xdauction.limit.16 xdauction.limit.17 xdauction.limit.18 xdauction.limit.19 xdauction.limit.20

xdauction.limit.unlimited

---

Features

๐Ÿ›’ Auction House

Beautiful modern INVENTORY GUI

Pagination

Live refresh

Buy Now

Purchase confirmation

Item preview

Search

Filters

Sorting

Categories

Fully configurable INVENTORY GUI

---

๐Ÿ’ฐ Buy & Sell

Sell directly from inventory

Buy instantly

Confirmation INVENTORY GUI

Cancel auctions

Edit price

Extend auction duration

---

๐Ÿ“‚ Categories

Unlimited configurable categories.

Examples

Weapons

Armor

Tools

Blocks

Food

Potions

Mob Drops

Spawners

Keys

Crates

Misc

---

๐Ÿ” Smart Search

Search by

Item Name

Material

Seller

Lore

Enchantments

NBT

Custom Model Data

Auction ID

Price

---

๐Ÿ”ƒ Sorting

Newest

Oldest

Lowest Price

Highest Price

Alphabetical

Seller

Recently Updated

---

๐ŸŽฏ Filters

Category

Currency

Enchanted Items

Online Sellers

Custom Items

Price Range

---

๐Ÿ“ฆ My Auctions

Active

Sold

Expired

Edit

Extend

Cancel

---

๐Ÿ“ฅ Claim Menu

Claim Sold Money

Claim Expired Items

Claim All

---

๐Ÿ’ต Economy

Supports

Vault Economy

Multiple currencies

Custom Currency API

Instant payments

Offline earnings delivery

Configurable currency formatting

Number abbreviations (1k, 1m, 1b, 1t)

No tax system.

No listing fee

No sale tax

Sellers receive 100% of the listed price

Buyers pay exactly the listed price

---

๐Ÿ“Š Statistics

Track

Auctions Created

Auctions Sold

Auctions Bought

Money Earned

Money Spent

Active Auctions

Expired Auctions

Cancelled Auctions

---

๐Ÿ”” Notifications

Notify players when

Item Sold

Item Purchased

Auction Expired

Auction Cancelled

Money Claimed

Item Claimed

Support

Chat

ActionBar

Titles

Sounds

---

๐ŸŒ Multi-Server Support

Supports

SQLite

MySQL

MariaDB

H2

Redis Synchronization

Velocity

BungeeCord

Cross-server auction synchronization.

---

๐Ÿงฐ Admin Features

Remove Auction

Recover Auction

Inspect Auction

Seller History

Force Claim

Force Expire

Purge Expired Auctions

Reload Configuration

Blacklist Manager

---

๐Ÿšซ Item Blacklist

Blacklist by

Material

Display Name

Lore

NBT

Enchantments

Potion Data

Custom Model Data

Written Books

Spawn Eggs

Containers

Shulker Boxes

---

๐Ÿ“ˆ Auction Limit System

Numeric permission system.

Permissions

xdauction.limit.1 ... xdauction.limit.20 xdauction.limit.unlimited

Highest permission wins.

Unlimited overrides all limits.

Default limit if no permission: 1 auction.

Placeholders

%xdauction_limit% %xdauction_limit_used% %xdauction_limit_remaining% %xdauction_limit_available%

INVENTORY GUI Example

Auction Slots

Active: 5 / 12

Remaining: 7

---

๐Ÿ”ข Number Formatting

Supports

1k

10k

100k

1m

10m

100m

1b

10b

1t

---

๐Ÿ“ฆ Shulker Box Preview

Features

Preview all Shulker Box colors

Read-only inventory

Preserve all NBT

Support custom items

Configurable title

Configurable rows

Configurable click actions

Optional sounds

No permission required

No dupe exploits

Example

shulker-preview: enabled: true open-action: SHIFT_LEFT buy-action: RIGHT rows: 3 title: "&8Shulker Preview"

sounds: enabled: true open: BLOCK_SHULKER_BOX_OPEN close: BLOCK_SHULKER_BOX_CLOSE

---

๐Ÿ–ฑ Item Preview

Preview

Lore

Enchantments

NBT

Attribute Modifiers

Potion Data

Banner Data

Firework Data

Custom Model Data

---

๐ŸŽจ Customization

Everything configurable.

Files

config.yml messages.yml menus.yml categories.yml database.yml blacklist.yml sounds.yml discord.yml

No hardcoded values.

---

๐Ÿ”Œ PlaceholderAPI

%xdauction_active% %xdauction_sold% %xdauction_bought% %xdauction_money_earned% %xdauction_money_spent% %xdauction_claimable_money% %xdauction_claimable_items%

---

๐Ÿ” Offline Earnings

Money delivered on login

Claim INVENTORY GUI

Offline notifications

---

โฐ Auction Durations

Configurable

1 Hour

6 Hours

12 Hours

24 Hours

48 Hours

72 Hours

7 Days

14 Days

---

๐ŸŒ Multi-Language

Unlimited language files

UTF-8 support

Placeholder support

Live reload

---

๐Ÿ“œ Auction History

Log

Created

Purchased

Sold

Cancelled

Expired

Claimed

Edited

Extended

Admin Actions

---

๐Ÿงน Automatic Cleanup

Automatically delete expired auctions

Scheduled cleanup

Database optimization

Archive support

---

๐Ÿ”’ Security

Dupe protection

Inventory validation

Economy validation

NBT validation

SQL injection protection

Crash recovery

Async-safe operations

Data integrity checks

---

๐ŸŒ Discord Webhook System

Fully configurable in discord.yml, similar to AxAuctions.

Events

Auction Created

Auction Purchased

Auction Cancelled

Auction Expired

Auction Claimed

Price Edited

Duration Extended

Admin Removed Auction

Force Expire

Force Claim

Each webhook supports:

Content

Embed Color

Title

Author

Footer

Thumbnail

Image

Custom Fields

Custom Emojis

PlaceholderAPI placeholders

Role Mentions

Example

url: ""

auction-create: enabled: true color: "#FFD700"

title: text: "<a:Diamond> New Auction"

fields: "1": inline: false name: "Seller" value: "%player%"

"2": inline: false name: "Item" value: "%amount%x %item%"

"3": inline: false name: "Price" value: "%price%"

auction-buy: enabled: true color: "#00FF66"

title: text: "Item Purchased"

fields: "1": inline: true name: "Buyer" value: "%player%"

"2": inline: true name: "Seller" value: "%seller%"

"3": inline: false name: "Item" value: "%amount%x %item%"

"4": inline: true name: "Price" value: "%price%"

version: 1

Requirements

Fully asynchronous HTTP requests

Retry failed requests

Queue requests to prevent Discord rate limits

Never block the server thread

Rich embeds

Configurable colors, authors, thumbnails, images, fields, and footers

Debug logging

Graceful failure handling

---

Performance

Fully asynchronous database operations

HikariCP connection pooling

Smart caching

Async searching

Async loading

Pagination caching

Memory optimized

Supports 10,000+ active auctions

Paper & Folia compatible

Clean modular architecture

Public API for developers

Production-ready for large Minecraft networks

Kodari AI
KodariAug 2 at 9:58 pm 3
xDAuction
xDAuction is a high-performance, Folia-compatible auction house plugin for Paper 1.21.11 and Java 21+. It provides configurable inventory menus, auction creation and purchasing, pagination, search, sorting, categories, item previews, confirmation screens, claimable offline earnings, auction limits, blacklist rules, statistics, notifications, SQLite/MySQL/MariaDB/H2 storage, optional Redis synchronization, PlaceholderAPI support, Vault economy integration, Discord webhooks, administrative controls, and crash-safe asynchronous processing for large networks.
notxdgg

The compilation failed with this error:

code
Compilation failed with 2 error(s):

ERROR in src/main/java/dev/xd/auction/service/AuctionService.java at line 50: cannot find symbol
                            ? item.getItemMeta().getItemMeta().getDisplayName() : item.getType().name())
                                                ^
  symbol: method getItemMeta()
  location: interface ItemMeta

ERROR in src/main/java/dev/xd/auction/placeholder/AuctionPlaceholders.java at line 44: cannot find symbol
            return plugin.getAuctionService().pendingMoney(player.getUniqueId());
                                             ^
  symbol: method pendingMoney(UUID)
  location: class AuctionService


=== COMPILATION ERROR ANALYSIS ===

MISSING METHODS:
  - getItemMeta()
  - pendingMoney(UUID)
ACTION: Check method names and signatures

FILES TO INVESTIGATE:
  - src/main/java/dev/xd/auction/service/AuctionService.java
  - src/main/java/dev/xd/auction/placeholder/AuctionPlaceholders.java

Please fix this error by creating a new artifact with the corrected code.

Kodari AI
KodariAug 3 at 12:27 am 1
  1. Correct the invalid nested ItemMeta call.

  2. Add the missing AuctionService.pendingMoney(UUID) API used by PlaceholderAPI.

Fixed both compilation errors:

  • Replaced the invalid item.getItemMeta().getItemMeta().getDisplayName() call with item.getItemMeta().getDisplayName().

  • Added AuctionService.pendingMoney(UUID) delegating to the repository and returning the value expected by PlaceholderAPI.

notxdgg

remive xDLink from SoftDepend

Kodari AI
KodariAug 3 at 12:29 am 1

Removed xDLink from softdepend in src/main/resources/plugin.yml.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
settings.gradle
Code
36 1,899
src/main/java/dev/xd/auction/XDAuction.java
package dev.xd.auction;

import dev.xd.auction.command.AuctionCommand;
import dev.xd.auction.discord.DiscordWebhookService;
import dev.xd.auction.economy.EconomyService;
import dev.xd.auction.economy.VaultEconomyService;
import dev.xd.auction.gui.GUIListener;
import dev.xd.auction.gui.GUIManager;
import dev.xd.auction.listener.PlayerListener;
import dev.xd.auction.placeholder.AuctionPlaceholders;
import dev.xd.auction.service.AuctionService;
import dev.xd.auction.service.BlacklistService;
import dev.xd.auction.storage.AuctionRepository;
import dev.xd.auction.storage.DatabaseManager;
import dev.xd.auction.util.TaskScheduler;
import lombok.Getter;
import net.milkbowl.vault.economy.Economy;
import org.bukkit.Bukkit;
import org.bukkit.plugin.RegisteredServiceProvider;
import org.bukkit.plugin.java.JavaPlugin;

import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;

@Getter
public final class XDAuction extends JavaPlugin {
    private DatabaseManager databaseManager;
    private AuctionRepository auctionRepository;
    private AuctionService auctionService;
    private GUIManager guiManager;
    private DiscordWebhookService discordWebhookService;
    private ScheduledExecutorService maintenanceExecutor;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        saveResource("messages.yml", false);
        saveResource("menus.yml", false);
        saveResource("categories.yml", false);
        saveResource("database.yml", false);
        saveResource("blacklist.yml", false);
        saveResource("sounds.yml", false);
        saveResource("discord.yml", false);

        EconomyService economy = setupEconomy();
        if (economy == null) {
            getLogger().severe("Vault economy was not found. xDAuction has been disabled.");
            getServer().getPluginManager().disablePlugin(this);
            return;
        }

        databaseManager = new DatabaseManager(this);
        auctionRepository = new AuctionRepository(databaseManager);
        guiManager = new GUIManager();
        discordWebhookService = new DiscordWebhookService(this);
        auctionService = new AuctionService(this, auctionRepository, economy, new BlacklistService(this));

        AuctionCommand command = new AuctionCommand(this, auctionService, guiManager);
        if (getCommand("ah") != null) {
            getCommand("ah").setExecutor(command);
            getCommand("ah").setTabCompleter(command);
        }

        getServer().getPluginManager().registerEvents(new GUIListener(guiManager), this);
        getServer().getPluginManager().registerEvents(new PlayerListener(this, auctionService), this);

        if (Bukkit.getPluginManager().isPluginEnabled("PlaceholderAPI")) {
            new AuctionPlaceholders(this).register();
        }

        maintenanceExecutor = Executors.newSingleThreadScheduledExecutor(runnable -> {
            Thread thread = new Thread(runnable, "xDAuction-Maintenance");
            thread.setDaemon(true);
            return thread;
        });

        long interval = Math.max(1, getConfig().getLong("cleanup.interval-minutes", 10));
        TaskScheduler.repeat(maintenanceExecutor, () -> auctionService.expire(), interval * 60_000L, interval * 60_000L);
        getLogger().info("xDAuction enabled.");
    }

    private EconomyService setupEconomy() {
        if (!Bukkit.getPluginManager().isPluginEnabled("Vault")) {
            return null;
        }
        RegisteredServiceProvider<Economy> registration =
                getServer().getServicesManager().getRegistration(Economy.class);
        if (registration == null || registration.getProvider() == null) {
            return null;
        }
        return new VaultEconomyService(registration.getProvider(), getConfig().getString("currency.name", "$"));
    }

    @Override
    public void onDisable() {
        if (maintenanceExecutor != null) {
            maintenanceExecutor.shutdownNow();
        }
        if (discordWebhookService != null) {
            discordWebhookService.close();
        }
        if (databaseManager != null) {
            databaseManager.close();
        }
    }
}