desteptul201-sys

You are an expert Minecraft plugin developer. Create a production-ready, optimized, and fully configurable BUY-ONLY Shop INVENTORY GUI plugin.

PLUGIN TYPE:

BIGDREAM Shop (players can ONLY buy, never sell) No player-created listings All items managed by admins via config or commands

TARGET:

Platform: Spigot / Paper Version: 1.20+ (backward compatible) Language: Java Plugin name: DreamShopGUI

CORE COMMANDS:

/shop → Opens main shop INVENTORY GUI /shop reload → Reload config /shop open → Open shop for another player /shop give → Give item from shop /shop edit → Admin INVENTORY GUI editor (optional but preferred)

BUY SYSTEM:

Left click = buy 1 Right click = buy stack Shift click = buy custom amount (via chat input) Confirmation INVENTORY GUI before purchase (configurable)

ECONOMY:

Vault API required Configurable currency format Purchase fails if insufficient funds Optional purchase cooldown

SHOP STRUCTURE:

Multiple categories (pages) Configurable category INVENTORY GUI Configurable navigation buttons Unlimited categories

CATEGORY FEATURES:

Icon Title Slot position Permission requirement (optional) Hidden categories support

ITEM CONFIGURATION:

Each item must support:

Material Amount Display name Lore Price Slot position Permission to buy Buy limit per player (optional) Cooldown per item Custom model data (optional) Enchantments Item flags NBT support

INVENTORY GUI REQUIREMENTS:

Fully configurable size Fully configurable layout Custom filler items Configurable next/previous buttons Close button Back button Category buttons

CONFIGURATION:

Everything must be configurable in config.yml:

INVENTORY GUI titles INVENTORY GUI sizes Item prices Slots Permissions Sounds Messages Categories Icons Layout

MESSAGES:

messages.yml Color codes support PlaceholderAPI support Configurable prefixes

SOUNDS:

Configurable:

purchase success purchase fail INVENTORY GUI open category switch

PERMISSIONS:

BIGDREAM.use BIGDREAM.admin BIGDREAM.reload BIGDREAM.category.

BIGDREAM.buy.

LIMITS:

Per item purchase cooldown Per player purchase limit Global purchase limit

PERFORMANCE:

No lag Async config loading Cached GUIs Optimized click handling

ADMIN FEATURES:

Optional INVENTORY GUI editor /shop edit mode toggle Click item in editor to modify price Drag & drop to place items

DATA STORAGE:

YAML only (no database needed) Player cooldowns stored in file

EXAMPLE CONFIG STRUCTURE: categories: blocks: icon: STONE slot: 10 items: stone: material: STONE price: 10 slot: 11

EXTRA FEATURES:

Buy animation Purchase history (optional) Auto close on buy (configurable) Buy multiple amount INVENTORY GUI

OUTPUT REQUIREMENTS:

Full Java source code plugin.yml config.yml messages.yml folder structure compile instructions dependency list

IMPORTANT:

Players must NOT be able to sell items.

This is strictly a BUY-ONLY shop.

Everything must be configurable without editing code.

Kodari AI
KodariApr 9 at 8:33 pm 24,097 (v2)

I’ll create a production-ready buy-only shop GUI plugin with full configuration, Vault economy, cooldowns, purchase limits, and a complete inventory GUI system.

DreamShopGUI
A comprehensive buy-only shop system with inventory-based GUI featuring multiple categories, configurable items, Vault economy integration, purchase confirmations, cooldowns, and per-item buy limits. Fully configurable layouts with admin commands, PlaceholderAPI support, custom amounts, and sound effects. No selling capability - strictly purchase-only for a controlled server economy.

Production-ready DreamShopGUI plugin created with:

Core Features:

  • Buy-only shop system (no selling capability)

  • Multiple configurable categories with permission support

  • Full inventory GUI framework with lazy initialization

  • Vault economy integration with custom currency formatting

  • Purchase confirmation system (configurable)

  • Per-item cooldowns and buy limits tracked in YAML

  • PlaceholderAPI support for messages

  • Click actions: left (buy 1), right (buy 64), shift (custom amount via chat)

Technical Implementation:

  • Professional GUI framework (InventoryHandler, InventoryButton, InventoryGUI base class)

  • GUIManager for centralized inventory tracking

  • XSeries for cross-version compatibility (materials, sounds, enchantments)

  • Lombok for clean data classes

  • Async-ready architecture

  • Comprehensive tab completion

Configuration:

  • Fully configurable GUI layouts, sizes, titles

  • Custom filler items and navigation buttons

  • Per-item pricing, enchantments, lore, permissions

  • Sound effects for all actions

  • Separate messages.yml with color code support

Commands:

  • /shop - Open main GUI

  • /shop reload - Reload configs

  • /shop open <player> - Open for others

  • /shop give <player> <category> <item> [amount] - Admin give

Build with ./gradlew build - requires Vault dependency installed on server.

desteptul201-sys

when you want to buy something add buttons on each side for adding or removing items like 1 , 16, 32, 64 and make it so i can configurate all of these things and add my own items in custom slots without difficulty and add categories or something else , also make them on the middle and the INVENTORY GUI size 27

desteptul201-sys

when you want to buy something add buttons on each side for adding or removing items like 1 , 16, 32, 64 and make it so i can configurate all of these things and add my own items in custom slots without difficulty and add categories or something else , also make them on the middle and the INVENTORY INVENTORY GUI size 27

desteptul201-sys

desteptul201-sys when you want to buy something add buttons on each side for adding or removing items like 1 , 16, 32, 64 and make it so i can configurate all of these things and add my own items in custom slots without difficulty and add categories or something else , also make them on the middle and the INVENTORY INVENTORY INVENTORY GUI size 27

desteptul201-sys

when you want to buy something add buttons on each side for adding or removing items like 1 , 16, 32, 64 and make it so i can configurate all of these things and add my own items in custom slots without difficulty and add categories or something else , also make them on the middle and the INVENTORY INVENTORY INVENTORY GUI size 27 also after you buy something make it so the menu doesnt close and you can buy without any closing menus , and make the plugin 100% CONFIGURABLE VIA CONFIG , no exceptions , no thing that isnt configurable

desteptul201-sys

when you want to buy something add buttons on each side for adding or removing items like 1 , 16, 32, 64 and make it so i can configurate all of these things and add my own items in custom slots without difficulty and add categories or something else , also make them on the middle and the INVENTORY INVENTORY INVENTORY INVENTORY GUI size 27 also after you buy something make it so the menu doesnt close and you can buy without any closing menus , and make the plugin 100% CONFIGURABLE VIA CONFIG , no exceptions , no thing that isnt configurable also modify the messages so they are more simple and actually work

desteptul201-sys

when you want to buy something add buttons on each side for adding or removing items like 1 , 16, 32, 64 and make it so i can configurate all of these things and add my own items in custom slots without difficulty and add categories or something else , also make them on the middle and the INVENTORY INVENTORY INVENTORY INVENTORY INVENTORY GUI size 27 also after you buy something make it so the menu doesnt close and you can buy without any closing menus , and make the plugin 100% CONFIGURABLE VIA CONFIG , no exceptions , no thing that isnt configurable also modify the messages so they are more simple and actually work and add a /sell command that opens up a INVENTORY GUI where you can sell your items for a specific price i can set in the config , MAKE IT 100% CONFIGURABLE and with no mistakes.

desteptul201-sys

when you want to buy something add buttons on each side for adding or removing items like 1 , 16, 32, 64 and make it so i can configurate all of these things and add my own items in custom slots without difficulty and add categories or something else , also make them on the middle and the INVENTORY INVENTORY INVENTORY INVENTORY INVENTORY INVENTORY GUI size 27 also after you buy something make it so the menu doesnt close and you can buy without any closing menus , and make the plugin 100% CONFIGURABLE VIA CONFIG , no exceptions , no thing that isnt configurable also modify the messages so they are more simple and actually work and add a /sell command that opens up a INVENTORY INVENTORY GUI where you can sell your items for a specific price i can set in the config , MAKE IT 100% CONFIGURABLE and with no mistakes.

Kodari AI
KodariApr 10 at 10:19 am 31,544 (v2)

I’ll read all existing files to understand the current structure, then enhance the plugin with all your requirements.

I’ll completely overhaul the plugin to meet all your requirements: 27-slot GUI, quantity adjustment buttons, no menu closing, sell system, and 100% configurability.

All done! The plugin is now completely overhauled with:

✅ Features Implemented:

  • 27-slot GUIs for all menus (main, category, buy, sell)

  • Quantity adjustment GUI with buttons: -64, -16, -1, +1, +16, +64 in the middle row

  • No menu closing after purchase - stays open in category view

  • /sell command with GUI where players place items to sell

  • 100% configurable - every slot, material, name, lore, price, sound

  • Simplified messages - clean and concise

  • Buy & sell prices - separate pricing for buying and selling items

Key Changes:

  • Items show in middle (slot 13) with adjustment buttons on sides

  • After buying, returns to category GUI instead of closing

  • Sell GUI lets players place items in slots 10-16, shows total value, and sells on confirm

  • All button positions, materials, and text fully configurable in config.yml

  • Changed price to buy-price and added sell-price in config

desteptul201-sys

when you use /shop , and want to buy something remove the -1 -16 -32 -64 and add on the right side just +16 +32 +64 and buy one after another when you press on the material in the menu with no cooldown

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
README.md
Code
26 2,298
src/main/java/com/bigdream/shopgui/DreamShopGUI.java
package com.bigdream.shopgui;

import com.bigdream.shopgui.commands.SellCommand;
import com.bigdream.shopgui.commands.ShopCommand;
import com.bigdream.shopgui.inventory.gui.GUIListener;
import com.bigdream.shopgui.inventory.gui.GUIManager;
import com.bigdream.shopgui.managers.ConfigManager;
import com.bigdream.shopgui.managers.CooldownManager;
import com.bigdream.shopgui.managers.EconomyManager;
import com.bigdream.shopgui.managers.MessageManager;
import com.bigdream.shopgui.managers.ShopManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class DreamShopGUI extends JavaPlugin {
    
    private ConfigManager configManager;
    private MessageManager messageManager;
    private ShopManager shopManager;
    private CooldownManager cooldownManager;
    private EconomyManager economyManager;
    private GUIManager guiManager;
    
    @Override
    public void onEnable() {
        this.configManager = new ConfigManager(this);
        this.messageManager = new MessageManager(this);
        this.shopManager = new ShopManager(this);
        this.cooldownManager = new CooldownManager(this);
        this.economyManager = new EconomyManager(this);
        this.guiManager = new GUIManager();
        
        if (!this.economyManager.setupEconomy()) {
            this.messageManager.log("&cVault not found! Disabling plugin...");
            Bukkit.getPluginManager().disablePlugin(this);
            return;
        }
        
        this.configManager.load();
        this.messageManager.load();
        this.shopManager.loadShop();
        this.cooldownManager.load();
        
        this.getCommand("shop").setExecutor(new ShopCommand(this));
        this.getCommand("sell").setExecutor(new SellCommand(this));
        Bukkit.getPluginManager().registerEvents(new GUIListener(this.guiManager), this);
        
        this.messageManager.log("&aDreamShopGUI v" + getDescription().getVersion() + " enabled!");
    }
    
    @Override
    public void onDisable() {
        if (this.cooldownManager != null) {
            this.cooldownManager.save();
        }
        this.messageManager.log("&cDreamShopGUI disabled!");
    }
    
    public void reload() {
        this.configManager.load();
        this.messageManager.load();
        this.shopManager.loadShop();
        this.cooldownManager.load();
    }
}