A

Create a production-quality Minecraft Java plugin called NovaGUI Shop.

Target:

Paper 1.21.1 Java 21 Maven

This should look like a premium paid plugin.

====================================================

FEATURES

Commands

/shop /market

Both commands open the same Premium Shop INVENTORY GUI.

Permissions

novagui.shop novagui.market novagui.admin

Vault Economy Support

Required.

Use Adventure API + MiniMessage.

No legacy formatting.

====================================================

INVENTORY GUI STYLE

Create a premium dark INVENTORY GUI.

Use black, gray and emerald colors.

Professional spacing.

Animated opening.

Premium sounds.

No ugly layouts.

Use custom glyph placeholders for icons.

Buttons

💰 Money 🛍 Main Shop ❌ Close

Money button should display

Current Balance

Vault Economy

Main Shop opens Categories.

====================================================

SHOP CATEGORIES

🧱 Blocks

⛏ Ores

🍖 Food

🛡 Gear

💣 Explosives

📦 Others

⬅ Back

❌ Close

====================================================

BLOCKS CATEGORY

Stone

Cobblestone

Stone Bricks

Deepslate

Bricks

Glass

Glass Pane

Oak Log

Spruce Log

Birch Log

Jungle Log

Dark Oak Log

Mangrove Log

Cherry Log

Bamboo Block

Obsidian

Crying Obsidian

End Stone

Netherrack

Soul Sand

Soul Soil

Glowstone

Sea Lantern

Prismarine

Packed Ice

Blue Ice

Moss Block

Leaves

Sand

Red Sand

Gravel

Dirt

Grass Block

====================================================

ORES CATEGORY

Coal

Iron Ingot

Copper Ingot

Gold Ingot

Diamond

Emerald

Redstone

Lapis Lazuli

Quartz

Netherite Scrap

Amethyst Shard

====================================================

FOOD CATEGORY

Bread

Cooked Beef

Cooked Chicken

Cooked Mutton

Cooked Porkchop

Cooked Cod

Cooked Salmon

Golden Carrot

Apple

Golden Apple

Enchanted Golden Apple

Pumpkin Pie

Cake

Baked Potato

Carrot

Sweet Berries

Melon Slice

Honey Bottle

====================================================

GEAR CATEGORY

Totem of Undying

Shield

Ender Pearl

Wind Charge

Arrow

Golden Apple

Enchanted Golden Apple

====================================================

EXPLOSIVES CATEGORY

TNT

End Crystal

Fire Charge

Firework Rocket

Respawn Anchor

====================================================

OTHERS CATEGORY

Name Tag

Lead

Bucket

Water Bucket

Lava Bucket

Milk Bucket

Compass

Recovery Compass

Clock

Spyglass

Saddle

Torch

Lantern

Soul Lantern

Glow Ink Sac

Bone Meal

String

Leather

Paper

Book

Bottle o' Enchanting

====================================================

DO NOT SELL

Armor

Weapons

Tools

Mace

Trident

Crossbow

Bows

Enchantments

Spawn Eggs

Command Blocks

Structure Blocks

Bedrock

Barrier

====================================================

BUYING SYSTEM

Left Click

Buy 1

Shift Left

Buy 16

Right Click

Buy 64

Check Vault Balance.

Deduct money.

Give item.

Play success sound.

If balance is insufficient

Play error sound.

Show MiniMessage.

====================================================

CONFIGURATION

Everything must be configurable.

Prices

Items

Slots

Lore

Titles

Messages

Sounds

Categories

INVENTORY GUI Layout

====================================================

FILES

plugin.yml

pom.xml

config.yml

messages.yml

prices.yml

menus/

shop.yml

categories.yml

blocks.yml

ores.yml

food.yml

gear.yml

explosives.yml

others.yml

====================================================

CODE QUALITY

Use SOLID Principles.

No duplicated code.

Use Managers.

Use Services.

Use InventoryHolder.

Separate INVENTORY GUI classes.

Separate Economy service.

Separate Config service.

Use async tasks where possible.

Generate complete production-ready source code.

Generate every Java class.

Generate every YAML file.

Generate the full folder structure.

The project must compile without errors.

The plugin should be optimized for large survival servers with 200+ online players.

Kodari AI
KodariJul 18 at 9:33 am 19
NovaGUIShop
NovaGUI Shop is a premium Paper 1.21.1 marketplace plugin that provides animated dark-themed inventory menus for browsing configurable categories and purchasing items. It supports both /shop and /market commands, Vault economy transactions, permission-based access, MiniMessage formatting, configurable prices, item definitions, layouts, sounds, messages, custom icon glyphs, purchase quantities, balance checks, and optimized inventory handling for large survival servers.
  1. Create the Maven project and Paper plugin metadata.

  2. Build configuration, messaging, economy, item, purchase, and GUI services.

  3. Add commands, inventory holders, listeners, and separate menu classes.

  4. Add all configurable menus, categories, items, prices, sounds, and messages.

Kodari can make mistakes. Review important code before using.
Files
src
pom.xml
Code
31 2,046
src/main/java/com/novagui/shop/NovaGUIPlugin.java
package com.novagui.shop;

import com.novagui.shop.command.ShopCommand;
import com.novagui.shop.config.ConfigService;
import com.novagui.shop.economy.EconomyService;
import com.novagui.shop.gui.GuiListener;
import com.novagui.shop.gui.GuiManager;
import com.novagui.shop.item.ItemFactory;
import com.novagui.shop.message.MessageService;
import com.novagui.shop.purchase.PurchaseService;
import com.novagui.shop.sound.SoundService;
import net.milkbowl.vault.economy.Economy;
import org.bukkit.Bukkit;
import org.bukkit.plugin.RegisteredServiceProvider;
import org.bukkit.plugin.java.JavaPlugin;

public final class NovaGUIPlugin extends JavaPlugin {
    private ConfigService configService;
    private EconomyService economyService;
    private MessageService messageService;
    private SoundService soundService;
    private ItemFactory itemFactory;
    private PurchaseService purchaseService;
    private GuiManager guiManager;

    @Override
    public void onEnable() {
        this.configService = new ConfigService(this);
        this.configService.load();

        RegisteredServiceProvider<Economy> registration =
                Bukkit.getServicesManager().getRegistration(Economy.class);

        if (registration == null || registration.getProvider() == null) {
            getLogger().severe("Vault economy provider was not found. NovaGUI Shop is disabling.");
            Bukkit.getPluginManager().disablePlugin(this);
            return;
        }

        this.economyService = new EconomyService(registration.getProvider());
        this.messageService = new MessageService(configService);
        this.soundService = new SoundService(configService);
        this.itemFactory = new ItemFactory(configService);
        this.purchaseService = new PurchaseService(
                economyService,
                messageService,
                soundService,
                itemFactory
        );
        this.guiManager = new GuiManager(
                this,
                configService,
                messageService,
                soundService,
                itemFactory,
                purchaseService
        );

        GuiListener listener = new GuiListener(guiManager, purchaseService);
        Bukkit.getPluginManager().registerEvents(listener, this);

        ShopCommand shopCommand = new ShopCommand(guiManager, messageService);
        getCommand("shop").setExecutor(shopCommand);
        getCommand("market").setExecutor(shopCommand);

        getLogger().info("NovaGUI Shop enabled with " + registration.getProvider().getName() + ".");
    }

    public ConfigService getConfigService() {
        return configService;
    }

    public EconomyService getEconomyService() {
        return economyService;
    }

    public GuiManager getGuiManager() {
        return guiManager;
    }
}