D

make shop plugin named DemonShops supported on all java versions and geyser and floodgate supported. where we can customize every INVENTORY GUI like main INVENTORY GUI items INVENTORY GUI buy INVENTORY GUI, we could fill any slot(borders) of any INVENTORY GUI with anything like other shop plugins. we could change the slot of next page and previous page button, we could change the slot of back button in items INVENTORY GUI. we could customize every INVENTORY GUI. we could add any item at any price. make very similar like donut smp shop and mcfleet season 2 shop. we could increase or decrease the row of any INVENTORY GUI. we could change slots of anything in any INVENTORY GUI we want at all customizable from config. make configs of every INVENTORY GUI separately so that every INVENTORY GUI should be customizable and configurable easily. it should support vault and essentialsx or coins engine currency or any other currency plugin. make the config of every INVENTORY GUI like blocks.yml, maingui.yml etc make it at full customizations. everything should be configurable and customizable very simply and easily. make it 100% customizable with no limitation and without any error or glitch in first go.

Kodari AI
KodariMay 15 at 7:31 am 30,168 (v2)

Now I have all the information I need. Let me plan the full architecture before writing a single line:

Plan:

  • DemonShops main plugin class with Vault + CoinsEngine hooks

  • ConfigManager loads all per-GUI YAML configs + config.yml + categories.yml

  • CurrencyManager abstracts Vault / CoinsEngine

  • ShopCategory + ShopItem data models

  • GuiConfig model (rows, title, fill slots, button slots)

  • MainShopGUI, CategoryGUI, BuyGUI — all driven 100% from config

  • GUI framework (InventoryHandler, InventoryButton, InventoryGUI, GUIManager, GUIListener)

  • ShopCommand + ShopAdminCommand

  • All YAML configs with full documentation

DemonShops
A fully configurable GUI shop plugin supporting Vault, EssentialsX, and CoinsEngine currencies. Features a main shop menu, per-category item GUIs, and a buy confirmation GUI — all 100% customizable via separate YAML configs (maingui.yml, categorygui.yml, buygui.yml, categories.yml). Every slot, border fill, button position, row count, title, and item is configurable. Supports Geyser/Floodgate Bedrock players. Includes pagination, permission-gated items, and admin reload commands.

Here’s a complete breakdown of everything built:


DemonShops — Full Architecture

📁 Config Files (all separate, fully documented)

File
Purpose
config.yml
Currency type (Vault/CoinsEngine), all messages
maingui.yml
Main shop GUI — rows, title, fill slots, category buttons, decorations
categorygui.yml
Category item list GUI — rows, title, fill, item-slots, nav button slots
buygui.yml
Buy confirmation GUI — rows, title, fill, confirm/cancel/amount selector slots
categories/blocks.yml
Blocks category items
categories/food.yml
Food category items
categories/tools.yml
Tools category items
categories/weapons.yml
Weapons category items
categories/armor.yml
Armor category items
categories/misc.yml
Misc category items

🔧 What’s 100% Configurable

  • Every GUI: rows (1–6), title, fill slots (any slot, any material, any name/lore)

  • Category buttons in main GUI: slot, material, name, lore, which category they open

  • Item slots in category GUI: exact list of slots where shop items appear

  • Next/Prev/Back button slots: change any nav button to any slot

  • Buy GUI: confirm slot, cancel slot, amount display slot, +/- button slots, item display slot

  • Every shop item: material, name, lore, amount, price, permission

  • Currency: switch between Vault (EssentialsX etc.) or CoinsEngine with one config line

  • Add new categories: just drop a new .yml in categories/ folder — auto-loaded

🎮 Features

  • Pagination in category GUI with configurable prev/next slots

  • Amount selector in buy GUI (left-click ±1, right-click ±10)

  • Permission-gated items per item

  • Geyser/Floodgate compatible (standard inventory GUIs work on Bedrock via Geyser)

  • Admin reload: /shopadmin reload reloads all configs live

  • Overflow protection: items that don’t fit inventory drop at player’s feet

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
29 2,138
src/main/java/com/demonshops/DemonShops.java
package com.demonshops;

import com.demonshops.command.ShopAdminCommand;
import com.demonshops.command.ShopCommand;
import com.demonshops.config.ConfigManager;
import com.demonshops.currency.CurrencyManager;
import com.demonshops.inventory.gui.GUIListener;
import com.demonshops.inventory.gui.GUIManager;
import com.demonshops.shop.ShopManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

public class DemonShops extends JavaPlugin {

    @Getter private static DemonShops instance;
    @Getter private ConfigManager configManager;
    @Getter private CurrencyManager currencyManager;
    @Getter private ShopManager shopManager;
    @Getter private GUIManager guiManager;

    @Override
    public void onEnable() {
        instance = this;

        configManager = new ConfigManager(this);
        configManager.loadAll();

        currencyManager = new CurrencyManager(this);
        currencyManager.setup();

        shopManager = new ShopManager(this);
        shopManager.loadCategories();

        guiManager = new GUIManager();
        getServer().getPluginManager().registerEvents(new GUIListener(guiManager), this);

        getCommand("shop").setExecutor(new ShopCommand(this));
        getCommand("shopadmin").setExecutor(new ShopAdminCommand(this));

        getLogger().info("DemonShops enabled successfully!");
    }

    @Override
    public void onDisable() {
        getLogger().info("DemonShops disabled.");
    }

    public void reload() {
        configManager.loadAll();
        currencyManager.setup();
        shopManager.loadCategories();
    }
}