f4b1n_official

make a orders /order and /ah /shop but shop classic make this all shop ah and order like on donut smp

Kodari AI
KodariSep 1 at 9:36 am 2
UnifiedMarketHub
A comprehensive Minecraft plugin that unifies three trading systems into one seamless experience. Players can create classic player shops with physical chests and signs, list items on an auction house with bidding and buy-now options, and place custom orders requesting specific items with set prices. The plugin features a unified /shop command with subcommands for browsing, managing, and searching across all market types. Includes GUI-based interfaces for browsing listings, managing active auctions, tracking order fulfillment, and handling transactions. Supports configurable taxes, listing durations, and per-player listing limits. Integrates with Vault for economy support and provides complete admin controls for monitoring and moderating all market activity.
  1. Create the Gradle/Paper plugin foundation and configuration.

  2. Add Vault-backed classic /shop, persistent /ah, and escrow-backed /order systems.

  3. Register commands, GUI listeners, persistence, tab completion, and cross-version item handling.

Created the KodariMarket plugin with:

  • /shop — classic GUI shop with buy/sell controls.

    • Left-click: buy 1

    • Shift-left: buy 64

    • Right-click: sell 1

    • Shift-right: sell 64

  • /ah — persistent auction house.

    • /ah sell <price>

    • /ah cancel <listing-id>

    • /ah search <item>

  • /order — persistent player buy orders with escrow.

    • /order create <material> <amount> <price>

    • /order cancel <order-id>

    • /order fulfill <order-id>

  • Vault economy integration.

  • YAML persistence for auction listings and orders.

  • GUI pagination and click handling.

  • XSeries material compatibility.

  • Configurable shop products, prices, names, slots, messages, and order limits.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
13 1,172
src/main/java/com/kodari/market/KodariMarket.java
package com.kodari.market;

import com.kodari.market.auction.AuctionManager;
import com.kodari.market.command.MarketCommand;
import com.kodari.market.order.OrderManager;
import com.kodari.market.shop.ShopManager;
import org.bukkit.plugin.java.JavaPlugin;

public final class KodariMarket extends JavaPlugin {
    private EconomyManager economyManager;
    private ShopManager shopManager;
    private AuctionManager auctionManager;
    private OrderManager orderManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        economyManager = new EconomyManager(this);
        economyManager.setup();
        shopManager = new ShopManager(this, economyManager);
        auctionManager = new AuctionManager(this, economyManager);
        orderManager = new OrderManager(this, economyManager);
        shopManager.load();
        auctionManager.load();
        orderManager.load();

        MarketCommand command = new MarketCommand(this);
        getCommand("shop").setExecutor(command);
        getCommand("shop").setTabCompleter(command);
        getCommand("ah").setExecutor(command);
        getCommand("ah").setTabCompleter(command);
        getCommand("order").setExecutor(command);
        getCommand("order").setTabCompleter(command);
        getServer().getPluginManager().registerEvents(new MarketListener(this), this);
    }

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

    public EconomyManager economy() {
        return economyManager;
    }

    public ShopManager shop() {
        return shopManager;
    }

    public AuctionManager auction() {
        return auctionManager;
    }

    public OrderManager orders() {
        return orderManager;
    }
}