N

Create a professional Minecraft spigot 1.21.11 plugin called FellaShop inspired by the DonutSMP shop system.

The plugin must use Java and Maven.

MAIN FEATURES:

  • /shop command opens a beautiful INVENTORY GUI shop menu
  • INVENTORY GUI must look modern, colorful, smooth and professional like DonutSMP
  • Categories system with separate pages
  • Supports custom item icons, lore and names
  • Buy system using Vault economy
  • Sell system
  • Players can select custom amount before buying
  • Add amount buttons:

+1 -1 +10 -10 +64 -64

  • Players must see current selected amount in INVENTORY GUI
  • Players can confirm purchase with a confirm button
  • Automatically calculate total price based on selected amount
  • Prevent selecting amount below 1
  • Prevent selecting amount above max stack limits
  • Players can left click to buy selected amount
  • Shift click sells selected amount
  • Play sounds when buying/selling
  • Messages configurable in config.yml
  • Support hex colors
  • Fully customizable INVENTORY GUI titles and sizes

CATEGORIES:

  • Blocks
  • Ores
  • Farming
  • Food
  • Mob Drops
  • Redstone
  • Combat
  • Tools
  • Armor
  • Misc

ADMIN COMMANDS:

  • /shopadmin createcategory <name>

Creates

Kodari AI
KodariMay 20 at 11:07 pm 4,633 (v2)

I’ll create a professional shop plugin with a modern inventory GUI system, category-based navigation, and amount selection mechanics.

FellaShop
A modern shop plugin featuring a beautiful inventory GUI with category-based navigation, dynamic amount selection (+1/-1/+10/-10/+64/-64 buttons), buy/sell system with Vault economy integration, configurable hex color messages, and comprehensive admin commands for shop management. Includes 10 default categories (Blocks, Ores, Farming, Food, Mob Drops, Redstone, Combat, Tools, Armor, Misc) with smooth purchase confirmation flow.

Architecture Plan

Core GUI Framework (from documentation):

  • InventoryHandler → InventoryButton → InventoryGUI → GUIManager/GUIListener

Three GUI Screens:

  1. MainShopGUI: Category selection (displays all 10 categories)

  2. CategoryShopGUI: Item browsing within a category

  3. PurchaseConfirmGUI: Amount selection with +/- buttons + confirm/cancel

Flow: /shop → MainShopGUI → CategoryShopGUI → PurchaseConfirmGUI → Transaction

Let me create the project structure:

[Generation stopped]

Kodari can make mistakes. Review important code before using.
Files
src
pom.xml
Code
4 624
src/main/resources/shop.yml
# FellaShop Items Configuration

categories:
  blocks:
    name: "&#FF6B6B&lBlocks"
    icon: "STONE"
    slot: 10
    items:
      STONE:
        name: "&#FFFFFFStone"
        lore:
          - "&#7F7F7FBasic building block"
          - ""
          - "&#00FF00Buy: &#FFFF00$5"
          - "&#FF0000Sell: &#FFFF00$2"
        buy-price: 5.0
        sell-price: 2.0
      COBBLESTONE:
        name: "&#7F7F7FCobblestone"
        lore:
          - "&#7F7F7FCommon building material"
          - ""
          - "&#00FF00Buy: &#FFFF00$3"
          - "&#FF0000Sell: &#FFFF00$1"
        buy-price: 3.0
        sell-price: 1.0
      DIRT:
        name: "&#8B4513Dirt"
        lore:
          - "&#7F7F7FBasic terrain block"
          - ""
          - "&#00FF00Buy: &#FFFF00$1"
          - "&#FF0000Sell: &#FFFF00$0.5"
        buy-price: 1.0
        sell-price: 0.5
      GRASS_BLOCK:
        name: "&#00FF00Grass Block"
        lore:
          - "&#7F7F7FNatural grass terrain"
          - ""
          - "&#00FF00Buy: &#FFFF00$2"
          - "&#FF0000Sell: &#FFFF00$1"
        buy-price: 2.0
        sell-price: 1.0
      OAK_PLANKS:
        name: "&#D2691EOak Planks"
        lore:
          - "&#7F7F7FCommon wood planks"
          - ""
          - "&#00FF00Buy: &#FFFF00$4"
          - "&#FF0000Sell: &#FFFF00$2"
        buy-price: 4.0
        sell-price: 2.0

  ores:
    name: "&#4ECDC4&lOres"
    icon: "DIAMOND_ORE"
    slot: 11
    items:
      COAL:
        name: "&#000000Coal"
        lore:
          - "&#7F7F7FCommon fuel source"
          - ""
          - "&#00FF00Buy: &#FFFF00$10"
          - "&#FF0000Sell: &#FFFF00$5"
        buy-price: 10.0
        sell-price: 5.0
      IRON_INGOT:
        name: "&#D3D3D3Iron Ingot"
        lore:
          - "&#7F7F7FUseful metal"
          - ""
          - "&#00FF00Buy: &#FFFF00$25"
          - "&#FF0000Sell: &#FFFF00$12"
        buy-price: 25.0
        sell-price: 12.0
      GOLD_INGOT:
        name: "&#FFD700Gold Ingot"
        lore:
          - "&#7F7F7FPrecious metal"
          - ""
          - "&#00FF00Buy: &#FFFF00$50"
          - "&#FF0000Sell: &#FFFF00$25"
        buy-price: 50.0
        sell-price: 25.0
      DIAMOND:
        name: "&#00FFFFDiamond"
        lore:
          - "&#7F7F7FRare gem"
          - ""
          - "&#00FF00Buy: &#FFFF00$200"
          - "&#FF0000Sell: &#FFFF00$100"
        buy-price: 200.0
        sell-price: 100.0
      EMERALD:
        name: "&#00FF00Emerald"
        lore:
          - "&#7F7F7FVillager currency"
          - ""
          - "&#00FF00Buy: &#FFFF00$150"
          - "&#FF0000Sell: &#FFFF00$75"
        buy-price: 150.0
        sell-price: 75.0

  farming:
    name: "&#95E1D3&lFarming"
    icon: "WHEAT"
    slot: 12
    items:
      WHEAT:
        name: "&#F5DEB3Wheat"
        lore:
          - "&#7F7F7FBasic crop"
          - ""
          - "&#00FF00Buy: &#FFFF00$3"
          - "&#FF0000Sell: &#FFFF00$1"
        buy-price: 3.0
        sell-price: 1.0
      CARROT:
        name: "&#FF8C00Carrot"
        lore:
          - "&#7F7F7FHealthy vegetable"
          - ""
          - "&#00FF00Buy: &#FFFF00$4"
          - "&#FF0000Sell: &#FFFF00$2"
        buy-price: 4.0
        sell-price: 2.0
      POTATO:
        name: "&#D2B48CPotato"
        lore:
          - "&#7F7F7FVersatile crop"
          - ""
          - "&#00FF00Buy: &#FFFF00$4"
          - "&#FF0000Sell: &#FFFF00$2"
        buy-price: 4.0
        sell-price: 2.0
      BEETROOT:
        name: "&#8B0000Beetroot"
        lore:
          - "&#7F7F7FRed crop"
          - ""
          - "&#00FF00Buy: &#FFFF00$3"
          - "&#FF0000Sell: &#FFFF00$1"
        buy-price: 3.0
        sell-price: 1.0
      SUGAR_CANE:
        name: "&#90EE90Sugar Cane"
        lore:
          - "&#7F7F7FMakes sugar and paper"
          - ""
          - "&#00FF00Buy: &#FFFF00$5"
          - "&#FF0000Sell: &#FFFF00$2"
        buy-price: 5.0
        sell-price: 2.0

  food:
    name: "&#FFB6C1&lFood"
    icon: "COOKED_BEEF"
    slot: 13
    items:
      BREAD:
        name: "&#D2691EBread"
        lore:
          - "&#7F7F7FBasic food"
          - ""
          - "&#00FF00Buy: &#FFFF00$8"
          - "&#FF0000Sell: &#FFFF00$3"
        buy-price: 8.0
        sell-price: 3.0
      COOKED_BEEF:
        name: "&#8B4513Cooked Beef"
        lore:
          - "&#7F7F7FHearty meal"
          - ""
          - "&#00FF00Buy: &#FFFF00$12"
          - "&#FF0000Sell: &#FFFF00$5"
        buy-price: 12.0
        sell-price: 5.0
      COOKED_PORKCHOP:
        name: "&#FFB6C1Cooked Porkchop"
        lore:
          - "&#7F7F7FDelicious food"
          - ""
          - "&#00FF00Buy: &#FFFF00$12"
          - "&#FF0000Sell: &#FFFF00$5"
        buy-price: 12.0
        sell-price: 5.0
      COOKED_CHICKEN:
        name: "&#F5DEB3Cooked Chicken"
        lore:
          - "&#7F7F7FTasty poultry"
          - ""
          - "&#00FF00Buy: &#FFFF00$10"
          - "&#FF0000Sell: &#FFFF00$4"
        buy-price: 10.0
        sell-price: 4.0
      GOLDEN_APPLE:
        name: "&#FFD700Golden Apple"
        lore: