errorx.net

FxAdvancedShopGUI

Ultimate Minecraft Shop & Sell Management System

DEVELOPER INFORMATION

  • Plugin Name: FxAdvancedShopGUI
  • Author: Fenix Studios
  • Developer: Fenix Studios
  • Version: 1.0.0
  • Main Class: com.fenixstudios.fxadvancedshopgui.FxAdvancedShopGUI
  • Platform: Paper / Spigot
  • Minecraft Version: 1.21.x
  • Java: 21
  • Build System: Maven
  • API: Bukkit / Paper API

IMPORTANT:

Create a completely independent plugin.

Implement the features described below without copying ShopGUIPlus source code, proprietary assets or branding.

Replace all ShopGUIPlus branding with FxAdvancedShopGUI.

Plugin prefix:

&#47B6FF&lFxAdvancedShopGUI &8▶

Developer branding everywhere:

Fenix Studios

---

PART 1: COMPLETE SHOP SYSTEM

  1. Main Shop
  1. Main shop GUI.
  2. Unlimited shop categories.
  3. Unlimited shop items.
  4. Custom GUI title.
  5. Custom GUI size.
  6. Custom category slots.
  7. Custom category materials.
  8. Custom category names.
  9. Custom category lore.
  10. Custom category amounts.
  11. Custom category enchantments.
  12. Custom category model data.
  13. Custom category permissions.
  14. Custom category sounds.
  15. Custom category commands.
  16. Custom filler items.
  17. Custom player balance display.
  18. Custom player head display.
  19. Custom information buttons.
  20. Custom GUI navigation.
  1. Shop Categories

Include these default categories:

  • Blocks
  • Ores
  • Farming
  • Food
  • Mob Drops
  • Weapons
  • Armor
  • Tools
  • Potions
  • Dyes
  • Redstone
  • Building
  • Miscellaneous
  • Decoration
  • Nether
  • End
  • Spawners
  • Custom Items
  • Special Items
  • Enchanted Items

Administrators can add unlimited categories.

Each category must have its own YAML file.

  1. Shop Items
  1. Custom material.
  2. Custom amount.
  3. Custom display name.
  4. Custom lore.
  5. Custom buy price.
  6. Custom sell price.
  7. Custom slot.
  8. Custom enchantments.
  9. Custom item flags.
  10. Custom model data.
  11. Custom item attributes.
  12. Custom unbreakable setting.
  13. Custom item permission.
  14. Custom item NBT/PDC.
  15. Custom item damage.
  16. Custom item durability.
  17. Custom item owner.
  18. Custom skull texture.
  19. Custom item glow.
  20. Custom item metadata comparison.

Additional support:

  • Buy-only items.
  • Sell-only items.
  • Buy and sell items.
  • Free items.
  • Disabled items.
  • Permission-based items.
  • Custom potion items.
  • Custom enchanted books.
  • Custom player heads.
  • Custom armor.
  • Custom weapons.
  • Custom model items.
  1. Item Click Actions
  1. Left-click to buy.
  2. Right-click to sell.
  3. Shift-left-click to buy more.
  4. Shift-right-click to sell more.
  5. Middle-click support.
  6. Custom click actions.
  7. Buy confirmation.
  8. Sell confirmation.
  9. Configurable click sounds.
  10. Prevent unauthorized clicks.

All click actions must be configurable.

---

PART 2: BUY SYSTEM

  1. Buying Features
  1. Single item purchase.
  2. Stack purchase.
  3. Buy 1.
  4. Buy 8.
  5. Buy 16.
  6. Buy 32.
  7. Buy 64.
  8. Custom quantity.
  9. Maximum quantity.
  10. Dynamic price calculation.
  11. Inventory space detection.
  12. Insufficient balance detection.
  13. Economy validation.
  14. Purchase confirmation.
  15. Purchase cancellation.
  16. Multiple stack delivery.
  17. Custom purchase messages.
  18. Custom purchase sounds.
  19. Permission-based purchasing.
  20. Free purchases.
  1. Buy GUI

Create a fully customizable Buy GUI.

Default layout:

  • Buy 1: slot 10
  • Buy 8: slot 11
  • Buy 16: slot 12
  • Buy 32: slot 13
  • Buy 64: slot 14
  • Custom Amount: slot 15
  • Confirm: slot 22
  • Cancel: slot 26

Every button supports:

  • Material
  • Display Name
  • Lore
  • Slot
  • Amount
  • Enchantment
  • Custom Model Data
  • Sound
  • RGB formatting

Display:

  • Selected item
  • Selected quantity
  • Total price
  • Current balance
  • Remaining balance

---

PART 3: SELL SYSTEM

  1. FxSellGUI

IMPORTANT:

FxSellGUI must be integrated directly into FxAdvancedShopGUI.

Do not create a separate plugin.

Create a dedicated Sell GUI.

Command:

/sellgui

Aliases:

/sellmenu /sellinventory

Features:

  1. Sell GUI.
  2. Inventory item detection.
  3. Sellable item detection.
  4. Non-sellable item protection.
  5. Sell all matching items.
  6. Sell selected items.
  7. Sell hand.
  8. Sell handall.
  9. Sell inventory.
  10. Sell quantity selection.
  11. Sell confirmation.
  12. Sell cancellation.
  13. Total selling price display.
  14. Dynamic item count.
  15. Dynamic balance display.
  16. Custom sell buttons.
  17. Custom sell lore.
  18. Custom sell sounds.
  19. Custom sell messages.
  20. Custom sell animations.
  1. Sell GUI Layout

Default GUI:

Size: 54

Slots:

  • 0-44: Player sellable items.
  • 45: Previous Page.
  • 47: Sell Hand.
  • 48: Sell All.
  • 49: Total Earnings.
  • 50: Sell Selected.
  • 51: Next Page.
  • 53: Close.

Allow every slot to be changed.

  1. Sell GUI Protection
  1. Prevent item duplication.
  2. Prevent double selling.
  3. Prevent unauthorized item removal.
  4. Prevent selling GUI buttons.
  5. Prevent selling protected items.
  6. Prevent selling soulbound items.
  7. Prevent selling items with restricted metadata.
  8. Prevent selling items with custom permissions.
  9. Prevent selling items from other GUI sessions.
  10. Restore items if transactions fail.
  1. Sell Commands

/sell hand /sell handall /sell all /sellgui /sell worth /sell worth <item>

Features:

  • Sell main hand.
  • Sell all matching hand items.
  • Sell entire inventory.
  • Check item worth.
  • Custom quantity.
  • Economy selection.
  • Transaction summary.

Support permissions for each command.

---

PART 4: LORE SYSTEM

  1. Buy Lore

Create a dedicated buy lore configuration.

File:

buy-lore.yml

Example:

buy-lore: enabled: true format:

  • ""
  • "&#30FF00&lBUY PRICE"
  • "&7Price: &#30FF00%buy_price%"
  • ""
  • "&e▶ Left Click to Buy"
  • "&e▶ Shift + Left Click to Buy More"

Support placeholders:

%buy_price% %item% %amount% %balance% %player% %economy% %discount% %final_price%

  1. Sell Lore

File:

sell-lore.yml

Example:

sell-lore: enabled: true format:

  • ""
  • "&#FF2E2E&lSELL PRICE"
  • "&7Price: &#FF2E2E%sell_price%"
  • ""
  • "&e▶ Right Click to Sell"
  • "&e▶ Shift + Right Click to Sell More"

Support:

%sell_price% %item% %amount% %total_price% %balance% %player% %economy%

  1. Dynamic Lore
  1. Buy lore.
  2. Sell lore.
  3. Combined buy/sell lore.
  4. Custom item lore.
  5. Custom category lore.
  6. Custom GUI button lore.
  7. Custom price lore.
  8. Discount lore.
  9. Economy lore.
  10. Dynamic quantity lore.

Allow separate lore templates for every shop category.

---

PART 5: BACK BUTTONS AND GUI NAVIGATION

  1. Navigation System

File:

gui.yml

Support:

  • Back button.
  • Close button.
  • Next page.
  • Previous page.
  • Main menu button.
  • Shop category button.
  • Sell GUI button.
  • Buy confirmation button.
  • Sell confirmation button.
  • Custom command buttons.
  • Custom information buttons.

Example:

buttons: back: enabled: true material: ARROW slot: 45 name: "&#FF2E2EBack" lore:

  • "&7Return to previous menu"

close: enabled: true material: BARRIER slot: 53 name: "&#FF2E2EClose" lore:

  • "&7Close this menu"

next-page: enabled: true material: ARROW slot: 50 name: "&#30FF00Next Page"

previous-page: enabled: true material: ARROW slot: 48 name: "&#FF2E2EPrevious Page"

All buttons must be configurable.

Remember the previous GUI when opening another GUI.

---

PART 6: ECONOMY

  1. Economy Integrations
  1. Vault.
  2. PlayerPoints.
  3. CoinsEngine.
  4. TokenManager.
  5. GemsEconomy.
  6. Gringotts.
  7. VotingPlugin.
  8. Experience Points.
  9. Experience Levels.
  10. Custom economy providers.

Support different economies per shop.

Example:

economy: default: VAULT enabled:

  • VAULT
  • PLAYERPOINTS

separate-shop-economy: true

If an integration is missing, disable only that integration and display a clear warning.

Never crash the entire plugin.

---

PART 7: PRICE MODIFIERS

  1. Price Modifiers

File:

pricemodifiers.yml

Features:

  1. Permission-based discounts.
  2. Permission-based selling bonuses.
  3. Buy price multiplier.
  4. Sell price multiplier.
  5. Percentage discount.
  6. Percentage bonus.
  7. Player-specific modifiers.
  8. Category-specific modifiers.
  9. Shop-specific modifiers.
  10. Temporary modifiers.
  11. Global modifiers.
  12. Command-controlled modifiers.
  13. Multiple modifier support.
  14. Modifier priority.
  15. Modifier expiration.
  16. Modifier stacking control.
  17. Maximum discount limit.
  18. Minimum price protection.

Example:

price-modifiers: vip: permission: "fxadvancedshopgui.discount.vip" buy-discount: 10 sell-bonus: 5

premium: permission: "fxadvancedshopgui.discount.premium" buy-discount: 15 sell-bonus: 10

Do not stack modifiers unless explicitly enabled.

---

PART 8: SPECIAL ITEM TYPES

  1. Item Types
  1. Normal item.
  2. Command item.
  3. Permission item.
  4. Enchantment item.
  5. Potion item.
  6. Player head item.
  7. Custom item.
  8. Experience item.
  9. Economy item.
  10. Custom GUI item.
  11. Executable item.
  12. Spawner item.

Every type must have its own validation and purchase logic.

---

PART 9: COMMANDS

  1. Main Commands

/shop /shop <shop> /shop reload /shop open <shop> /shop open <player> <shop> /shop check <player> /shop worth /shop worth <item> /shop editor /shop logs /shop create <name> /shop delete <name> /shop list

Sell:

/sell hand /sell handall /sell all /sellgui /sell worth <item>

All commands must support tab completion.

  1. Admin Commands
  1. Create shop.
  2. Delete shop.
  3. Reload plugin.
  4. Reload individual shop.
  5. Open shop for player.
  6. Check player transactions.
  7. View item worth.
  8. Open shop editor.
  9. Manage modifiers.
  10. Manage economy settings.
  11. Manage shop permissions.
  12. Manage sell restrictions.
  13. Manage GUI settings.
  14. Manage item prices.
  15. Manage shop categories.

---

PART 10: CONFIGURATION STRUCTURE

  1. Main Folder

Use this structure:

plugins/ └── FxAdvancedShopGUI/ │ ├── config.yml ├── lang.yml ├── messages.yml ├── gui.yml ├── sounds.yml ├── permissions.yml ├── pricemodifiers.yml ├── sellgui.yml │ ├── shops/ │ ├── blocks.yml │ ├── ores.yml │ ├── farming.yml │ ├── food.yml │ ├── gear.yml │ ├── drops.yml │ ├── dyes.yml │ ├── tools.yml │ ├── armor.yml │ ├── weapons.yml │ ├── potions.yml │ └── miscellaneous.yml │ ├── data/ │ └── database.db │ └── logs/ └── transactions.log

All files must be automatically generated on first startup.

---

PART 11: SIMPLIFIED SHOP YAML

IMPORTANT:

The shop configuration must be extremely simple.

Do not use unnecessarily complicated nested structures.

Every shop must follow the same format.

Example: shops/gear.yml

shop: name: "&#47B6FF&lGear Shop" title: "&#47B6FFGear Shop" size: 54 permission: "fxadvancedshopgui.shops.gear"

items: diamond_sword: material: DIAMOND_SWORD name: "&#47B6FFDiamond Sword" lore:

  • "&7A powerful sword"

buy: 2500 sell: 500 amount: 1 slot: 11

netherite_sword: material: NETHERITE_SWORD name: "&#47B6FFNetherite Sword" lore: - "&7A powerful weapon" buy: 15000 sell: 3000 amount: 1 slot: 12

diamond: material: DIAMOND name: "&#47B6FFDiamond" buy: 1000 sell: 200 amount: 1 slot: 13

golden_apple: material: GOLDEN_APPLE name: "&#FFD800Golden Apple" buy: 500 sell: 100 amount: 1 slot: 14

This is the default structure for every shop.

Additional optional settings:

enchanted_sword: material: DIAMOND_SWORD name: "&#47B6FFEnchanted Sword" buy: 5000 sell: 1000 amount: 1 slot: 15 glow: true unbreakable: false enchantments:

SHARPNESS: 5 UNBREAKING: 3 flags: - HIDE_ENCHANTS

Allow all optional properties to be omitted.

Do not force administrators to configure every property.

  1. Item Type Configuration

For normal items:

type: ITEM

For command items:

type: COMMAND commands:

  • "give %player% diamond 1"

For permission items:

type: PERMISSION permission: "example.permission" duration: 7d

For enchantment items:

type: ENCHANTMENT enchantment: SHARPNESS level: 5

For experience items:

type: EXPERIENCE amount: 100

The system should validate each item type.

---

PART 12: LANG.YML

  1. Language System

Create a dedicated lang.yml containing all player-facing messages.

Do not hardcode messages in Java.

Example:

prefix: "&#47B6FF&lFxAdvancedShopGUI &8▶"

messages:

no-permission: "%prefix% &#FF2E2EYou don't have permission!"

reload: success: "%prefix% &#30FF00Plugin reloaded successfully!" failed: "%prefix% &#FF2E2EReload failed. Check console."

shop: opened: "%prefix% &#30FF00Shop opened!" not-found: "%prefix% &#FF2E2EShop not found!" disabled: "%prefix% &#FF2E2EThis shop is disabled!"

buy: success: "%prefix% &#30FF00Purchased %amount%x %item% for %price%!" insufficient-money: "%prefix% &#FF2E2EYou don't have enough money!" inventory-full: "%prefix% &#FF2E2EYour inventory is full!" cancelled: "%prefix% &#FFD800Purchase cancelled!"

sell: success: "%prefix% &#30FF00Sold %amount%x %item% for %price%!" nothing-to-sell: "%prefix% &#FF2E2ENothing to sell!" disabled: "%prefix% &#FF2E2ESelling is disabled!"

sell-all: success: "%prefix% &#30FF00Sold %amount% items for %price%!" no-items: "%prefix% &#FF2E2ENo sellable items found!"

commands: player-only: "%prefix% &#FF2E2EThis command is for players only!" invalid-usage: "%prefix% &#FF2E2EInvalid command usage!"

Support:

  • RGB HEX.
  • Legacy colors.
  • MiniMessage.
  • PlaceholderAPI.
  • Custom prefixes.
  • Multiple languages.
  • Empty messages.
  • Disabled messages.

Allow changing the prefix from one location.

---

PART 13: GUI CONFIGURATION

  1. GUI Customization
  1. Custom GUI title.
  2. Custom GUI size.
  3. Custom GUI background.
  4. Custom filler material.
  5. Custom filler name.
  6. Custom filler lore.
  7. Custom filler slots.
  8. Custom item slots.
  9. Custom navigation.
  10. Custom close buttons.
  11. Custom back buttons.
  12. Custom sounds.
  13. Custom animations.
  14. Custom click actions.
  15. Custom GUI permissions.
  16. Custom GUI placeholders.

Support BLACK_STAINED_GLASS_PANE as the default filler.

Default filler name: " "

---

PART 14: SOUNDS AND ANIMATIONS

  1. Sound System

File:

sounds.yml

Events:

  • main-menu-open
  • shop-open
  • category-click
  • item-buy
  • item-sell
  • sell-all
  • buy-failed
  • sell-failed
  • insufficient-money
  • inventory-full
  • page-next
  • page-previous
  • back
  • close
  • confirm
  • cancel

Each sound supports:

  • Enabled
  • Sound
  • Volume
  • Pitch

Animations:

  1. GUI opening animation.
  2. GUI closing animation.
  3. Item purchase animation.
  4. Item selling animation.
  5. Confirmation animation.
  6. Page transition animation.

Animations must be optional and performance-friendly.

---

PART 15: DATABASE AND LOGS

  1. Database

Support:

  • SQLite.
  • MySQL.

Store:

  1. Player purchases.
  2. Player sales.
  3. Total money spent.
  4. Total money earned.
  5. Total items purchased.
  6. Total items sold.
  7. Transaction history.
  8. Player shop statistics.
  9. Modifier information.
  1. Transaction Logs

Record:

  • Player name.
  • Player UUID.
  • Item.
  • Quantity.
  • Shop.
  • Transaction type.
  • Economy.
  • Total price.
  • Date and time.

Store logs in:

logs/transactions.log

Add configurable logging.

---

PART 16: PLACEHOLDERAPI

  1. Placeholders

Support:

%fxadvancedshopgui_balance% %fxadvancedshopgui_total_bought% %fxadvancedshopgui_total_sold% %fxadvancedshopgui_total_spent% %fxadvancedshopgui_total_earned% %fxadvancedshopgui_transactions% %fxadvancedshopgui_shop% %fxadvancedshopgui_item%

All placeholders must return valid values.

---

PART 17: PERMISSIONS

  1. Permission System

Use:

fxadvancedshopgui.*

fxadvancedshopgui.shop fxadvancedshopgui.reload fxadvancedshopgui.check fxadvancedshopgui.worth fxadvancedshopgui.others fxadvancedshopgui.editor fxadvancedshopgui.sell.hand fxadvancedshopgui.sell.hand.all fxadvancedshopgui.sell.all fxadvancedshopgui.sell.all.others fxadvancedshopgui.buymore fxadvancedshopgui.sellmore fxadvancedshopgui.bypassworld fxadvancedshopgui.bypassgamemode fxadvancedshopgui.shops.* fxadvancedshopgui.sellgui fxadvancedshopgui.modifiers fxadvancedshopgui.logs

Allow individual shop permissions.

---

PART 18: WORLD RESTRICTIONS

  1. Restrictions

Support:

  • Disabled worlds.
  • Allowed worlds.
  • Disabled gamemodes.
  • Allowed gamemodes.
  • Creative restrictions.
  • Spectator restrictions.
  • Adventure restrictions.
  • Permission bypass.
  • Shop-specific restrictions.
  • Sell GUI restrictions.

---

PART 19: NUMBER FORMATTING

  1. Price Formatting

Support:

  • Decimal places.
  • Decimal separators.
  • Thousands separators.
  • Short number formatting.
  • Currency symbols.
  • Economy-specific formatting.

Examples:

1000 = 1,000 1000000 = 1M 1500000000 = 1.5B

All formatting must be configurable.

---

PART 20: ADMIN SHOP EDITOR

  1. Editor GUI

Create a complete in-game editor.

Administrators can:

  • Create shops.
  • Delete shops.
  • Rename shops.
  • Add items.
  • Remove items.
  • Change prices.
  • Change quantities.
  • Change slots.
  • Edit names.
  • Edit lore.
  • Change materials.
  • Set buy prices.
  • Set sell prices.
  • Toggle buying.
  • Toggle selling.
  • Configure permissions.
  • Change shop titles.
  • Change GUI sizes.
  • Manage buttons.

Save changes to YAML files.

Provide safe validation before saving.

---

PART 21: PERFORMANCE AND SECURITY

  1. Optimization
  • Efficient inventory scanning.
  • Efficient shop loading.
  • Cache shop configurations.
  • Avoid unnecessary repeating tasks.
  • Avoid synchronous database queries.
  • Safe asynchronous file operations.
  • Proper inventory event handling.
  • Prevent memory leaks.
  • Proper GUI session management.
  • Support Paper optimizations.
  • Folia-compatible scheduling if officially supported.
  1. Transaction Security
  • Prevent double purchases.
  • Prevent double selling.
  • Prevent negative quantities.
  • Prevent invalid prices.
  • Prevent inventory duplication.
  • Validate economy withdrawals.
  • Validate economy deposits.
  • Restore items after failed transactions.
  • Prevent GUI item theft.
  • Prevent shift-click exploits.
  • Prevent number-key exploits.
  • Prevent drag exploits.
  • Prevent offhand exploits.
  • Prevent creative-mode exploits.
  • Validate item metadata.
  • Validate custom item identity.

---

PART 22: CONFIGURATION MANAGEMENT

  1. Reload System

Command:

/shop reload

Reload:

  • config.yml
  • lang.yml
  • messages.yml
  • gui.yml
  • sounds.yml
  • permissions.yml
  • buy-lore.yml
  • sell-lore.yml
  • pricemodifiers.yml
  • sellgui.yml
  • All shop files.

Support:

  • Individual shop reload.
  • Configuration validation.
  • Error reporting.
  • Last-valid-configuration fallback.
  • Reload confirmation.

Do not restart the server to apply normal configuration changes.

---

PART 23: DEFAULT CONFIG.YML

  1. Main Configuration Example

config.yml:

settings: prefix: "&#47B6FF&lFxAdvancedShopGUI &8▶" language: "en" update-checker: true debug: false

economy: provider: VAULT

shop: enabled: true default-size: 54 default-fill: material: BLACK_STAINED_GLASS_PANE name: " "

sell: enabled: true sell-gui: true sell-hand: true sell-handall: true sell-all: true exclude-armor: true exclude-offhand: true

buy: enabled: true confirmation: false allow-custom-amount: true maximum-amount: 2304

security: prevent-duplication: true prevent-double-transactions: true validate-prices: true

formatting: type: HEX short-numbers: true decimal-places: 2

database: type: SQLITE

---

PART 24: COMPLETE FINAL REQUIREMENTS

  1. Development Deliverables

Create:

  1. Complete Maven project.
  2. Complete Java source code.
  3. plugin.yml.
  4. pom.xml.
  5. config.yml.
  6. lang.yml.
  7. messages.yml.
  8. gui.yml.
  9. sounds.yml.
  10. permissions.yml.
  11. buy-lore.yml.
  12. sell-lore.yml.
  13. pricemodifiers.yml.
  14. sellgui.yml.
  15. Default shop configurations.
  16. SQLite database implementation.
  17. MySQL implementation.
  18. Vault integration.
  19. PlaceholderAPI integration.
  20. All GUI classes.
  21. All command classes.
  22. All transaction classes.
  23. All economy handlers.
  24. All item handlers.
  25. Admin editor.
  26. Documentation.
  27. Installation guide.
  28. Configuration guide.
  29. Permission documentation.
  30. Example shop configurations.
  1. Testing

Test on a real Paper server.

Test:

  • Opening shops.
  • Opening categories.
  • Buying items.
  • Selling items.
  • Selling entire inventory.
  • Selling hand.
  • Selling handall.
  • Buy GUI.
  • Sell GUI.
  • Custom quantities.
  • Economy integration.
  • Permissions.
  • Price modifiers.
  • GUI navigation.
  • Custom lore.
  • Reloading.
  • Database saving.
  • Inventory protection.
  • Transaction failure handling.

Do not deliver incomplete or fake features.

Do not leave TODO methods.

Do not use placeholder implementations.

Every advertised feature must actually work.

FINAL BRANDING

Plugin: FxAdvancedShopGUI

Author: Fenix Studios

Description:

An advanced, fully customizable Minecraft Shop & Sell Management System featuring powerful GUIs, dynamic pricing, bulk transactions, economy integrations, custom item shops, RGB customization and an integrated FxSellGUI. in sellgui we can set custom prefix of sellgui only and on item sold it shuld that show title and subtitle for show the price and the sell and buy lore and all thing will cinfigured in confih.yml and also stackable items like enderpearl is 16 egg is 16 stack buy gui like we want to buy golden apple for stack of 1 2 or 6 or 7 like and buy gui other configure in config.yml all thing and sabka kam bhi dikhayga ki kisse kjska configure hoga and messages hoga messages.yml gui.yml ke andar example gui dikhayga shop ka kaise edit kre kisse kya hota h wo sellgui ka sara config sellgui.yml m rahega

One Plugin. Complete Shop System. Complete Sell System.

Kodari AI
KodariNov 8 at 3:23 am 4
FxAdvancedShopGUI
An advanced Minecraft Shop &amp; Sell management system with fully customizable GUI-based shops, unlimited categories and items, dynamic buy/sell pricing, bulk transactions, multiple economy integrations including Vault and PlayerPoints, price modifiers with permission-based discounts, integrated FxSellGUI for inventory selling, custom item types including command, permission, enchantment, potion, and experience items, RGB hex color support, PlaceholderAPI integration, SQLite/MySQL database storage, transaction logging, world restrictions, number formatting, and a complete in-game admin editor for managing shops, items, prices, and GUI layouts.
  1. Create the Maven/Paper 1.21 plugin scaffold and generate the requested configuration files on first startup.

  2. Implement configurable shop browsing, quantity-based purchases, and the integrated sell GUI with safe inventory/economy transactions.

  3. Add commands, messages, and GUI guidance; keep Sell GUI settings in sellgui.yml and its prefix independent.

Created the Maven/Paper 1.21.4 plugin project with 20 starter shop categories generated on first startup. It includes configurable category shops, quantity-based purchases, Vault transactions, /sell commands, an integrated sell GUI, transaction logs, and GUI protections.

The Sell GUI has its own prefix in sellgui.yml and configurable success title/subtitle. Buy quantities—including 1, 2, 6, 7, and stack-sized options—are set in config.yml; messages are in messages.yml, and navigation examples are in gui.yml.

This is not the full feature set in the request: the in-game editor, SQLite/MySQL statistics, PlaceholderAPI, active price modifiers, and additional economy/item-type integrations are not implemented. The README lists these limitations; I haven’t tested it on a real Paper server.

Kodari can make mistakes. Review important code before using.
Files
src
pom.xml
README.md
Code
21 2,014
src/main/java/com/fenixstudios/fxadvancedshopgui/FxAdvancedShopGUI.java
package com.fenixstudios.fxadvancedshopgui;

import com.fenixstudios.fxadvancedshopgui.command.SellCommand;
import com.fenixstudios.fxadvancedshopgui.command.ShopCommand;
import com.fenixstudios.fxadvancedshopgui.gui.ShopListener;
import com.fenixstudios.fxadvancedshopgui.shop.ShopManager;
import net.milkbowl.vault.economy.Economy;
import org.bukkit.plugin.RegisteredServiceProvider;
import org.bukkit.plugin.java.JavaPlugin;

import java.io.File;

public final class FxAdvancedShopGUI extends JavaPlugin {
    private Economy economy;
    private ShopManager shopManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        for (String file : new String[]{"lang.yml", "messages.yml", "gui.yml", "sounds.yml", "permissions.yml", "buy-lore.yml", "sell-lore.yml", "pricemodifiers.yml", "sellgui.yml"}) {
            saveIfMissing(file);
        }
        hookEconomy();
        shopManager = new ShopManager(this);
        shopManager.reload();
        getServer().getPluginManager().registerEvents(new ShopListener(shopManager), this);
        ShopCommand shopCommand = new ShopCommand(this, shopManager);
        getCommand("shop").setExecutor(shopCommand);
        getCommand("shop").setTabCompleter(shopCommand);
        SellCommand sellCommand = new SellCommand(shopManager);
        getCommand("sell").setExecutor(sellCommand);
        getCommand("sell").setTabCompleter(sellCommand);
        getCommand("sellgui").setExecutor(sellCommand);
        getCommand("sellgui").setTabCompleter(sellCommand);
        getLogger().info("FxAdvancedShopGUI enabled by Fenix Studios.");
    }

    @Override
    public void onDisable() {
        if (shopManager != null) {
            shopManager.closeSessions();
        }
    }

    private void saveIfMissing(String name) {
        File file = new File(getDataFolder(), name);
        if (!file.exists()) {
            saveResource(name, false);
        }
    }

    private void hookEconomy() {
        if (getServer().getPluginManager().getPlugin("Vault") == null) {
            getLogger().warning("Vault was not found; paid purchases and sales are disabled. Free purchases remain available.");
            return;
        }
        RegisteredServiceProvider<Economy> provider = getServer().getServicesManager().getRegistration(Economy.class);
        if (provider == null || provider.getProvider() == null) {
            getLogger().warning("Vault is installed but no economy provider is registered; paid transactions are disabled.");
            return;
        }
        economy = provider.getProvider();
        getLogger().info("Economy connected through Vault: " + economy.getName());
    }

    public Economy getEconomy() {
        return economy;
    }
}