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:

Admin 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: AdminShopGUI

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:

adminshop.use adminshop.admin adminshop.reload adminshop.category. adminshop.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:26 pm 12,548 (v2)

I’ll create a comprehensive buy-only admin shop GUI plugin with full configuration support.

AdminShopGUI
A professional admin-managed shop system with customizable inventory GUIs. Players can purchase items using Vault economy with multiple buying options: single, stack, or custom amounts. Features include unlimited categories, confirmation dialogs, purchase cooldowns, per-player limits, permission-based access, configurable layouts, sounds, and PlaceholderAPI support. All settings including prices, items, categories, and GUI layouts are fully configurable without code changes.

[Generation stopped]

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
23 1,532
src/main/java/com/adminshop/AdminShopGUI.java
package com.adminshop;

import com.adminshop.commands.ShopCommand;
import com.adminshop.config.ConfigManager;
import com.adminshop.config.MessagesConfig;
import com.adminshop.data.PlayerDataManager;
import com.adminshop.economy.EconomyManager;
import com.adminshop.inventory.gui.GUIListener;
import com.adminshop.inventory.gui.GUIManager;
import com.adminshop.shop.ShopManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class AdminShopGUI extends JavaPlugin {
    
    private ConfigManager configManager;
    private MessagesConfig messagesConfig;
    private EconomyManager economyManager;
    private ShopManager shopManager;
    private GUIManager guiManager;
    private PlayerDataManager playerDataManager;
    
    @Override
    public void onEnable() {
        this.configManager = new ConfigManager(this);
        this.messagesConfig = new MessagesConfig(this);
        this.economyManager = new EconomyManager(this);
        this.guiManager = new GUIManager();
        this.playerDataManager = new PlayerDataManager(this);
        this.shopManager = new ShopManager(this);
        
        if (!this.economyManager.setupEconomy()) {
            getLogger().severe("Vault not found! Disabling plugin...");
            Bukkit.getPluginManager().disablePlugin(this);
            return;
        }
        
        this.configManager.loadConfig();
        this.messagesConfig.loadMessages();
        this.shopManager.loadShop();
        this.playerDataManager.loadData();
        
        ShopCommand shopCommand = new ShopCommand(this);
        getCommand("shop").setExecutor(shopCommand);
        getCommand("shop").setTabCompleter(shopCommand);
        
        GUIListener guiListener = new GUIListener(this.guiManager);
        Bukkit.getPluginManager().registerEvents(guiListener, this);
        
        Bukkit.getScheduler().runTaskTimer(this, () -> {
            this.playerDataManager.saveData();
        }, 20L * this.configManager.getSaveInterval(), 20L * this.configManager.getSaveInterval());
        
        getLogger().info("AdminShopGUI has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (this.playerDataManager != null) {
            this.playerDataManager.saveData();
        }
        getLogger().info("AdminShopGUI has been disabled!");
    }
    
    public void reload() {
        this.configManager.loadConfig();
        this.messagesConfig.loadMessages();
        this.shopManager.loadShop();
        this.playerDataManager.loadData();
    }
}


Looking at this comprehensive request, I need to create a full-featured buy-only admin shop with inventory GUI system, Vault economy, configuration, cooldowns, limits, and more.