U

Based on your requirements and the ChestShop-3 project, here's a comprehensive specification you can give to Kodari AI or another developer to transform it into a premium, production-ready plugin.

Required Fixes

Fix hologram positioning:

Hologram should appear only 0.25-0.35 blocks above the chest, not floating high above it.

Automatically update position if chest changes.

Perfect support for single and double chests.

No hologram flickering.

Compatible with DecentHolograms or built-in hologram engine.

Reduce hologram size:

Smaller font/line spacing.

Clean premium appearance.

Maximum 3-4 lines by default.

Example:

🛒 Diamond Shop Price: $500 Stock: 128 Owner: Techu

Sneak + Right Click Menu

When the owner performs:

Shift + Right Click Chest

Open a premium ChestShop INVENTORY GUI instead of editing via commands.

INVENTORY GUI Features:

Change Item

Buy Price

Sell Price

Stock Manager

Unlimited Stock Toggle

Admin Shop Toggle

Shop Name

Shop Description

Hologram Settings

Sound Settings

Particle Settings

Permissions

Delete Shop

Statistics

Transaction History

Stock System

Premium stock management.

Features:

Real stock inside chest.

Virtual stock option.

Unlimited stock.

Auto refill.

Low stock warning.

Out of stock hologram.

Stock limit.

Restock button.

Import items from inventory.

Export remaining stock.

Hologram Improvements

Support placeholders such as:

{shop_name} {owner} {buy_price} {sell_price} {stock} {status} {item}

Different colors when:

In Stock

Low Stock

Out Of Stock

Admin Shop

Animated title support.

Example

✨ Diamond Shop ✨ Buy: $500 Sell: $250 Stock: 84

Premium INVENTORY GUI Design

54-slot inventory.

Animated borders.

Custom textures.

Category icons.

Sounds.

Smooth transitions.

No chat spam.

Statistics

Track:

Total Sales

Total Income

Total Purchases

Daily Sales

Weekly Sales

Top Selling Item

Most Active Buyer

Creation Date

Transaction History

Store last 100 transactions.

Example

Player123 bought 32 Diamonds Price: $16,000 Time: 2 minutes ago

Search Menu

/shop search

Search by:

Item

Player

Shop Name

Distance

Category

Categories

Assign categories:

Blocks

Farming

Food

Mob Drops

Ores

Decoration

Miscellaneous

Shop Rating

Players can rate shops.

⭐⭐⭐⭐⭐

Average displayed in hologram and INVENTORY GUI.

Favorites

Players can favorite shops.

/shop favorites

Shop Browser

Premium INVENTORY GUI showing:

Nearby Shops

Best Rated

Newest

Cheapest

Most Expensive

Most Stock

Recently Updated

Notifications

Owner notified when:

Item sold

Stock low

Chest destroyed

Shop disabled

Supports:

ActionBar

Title

BossBar

Discord Webhook (optional)

Security

Prevent hopper stealing.

Prevent explosions from destroying shops.

Prevent piston movement.

Protect against duplication.

Chunk-safe loading.

Async database saving.

Crash-safe data storage.

Performance

Async database operations.

Cached shop data.

Chunk-based hologram loading.

No TPS lag with thousands of shops.

Java 21 compatible.

Paper/Purpur 1.21.11 support.

Folia compatibility where possible.

Admin Commands

/shop create /shop remove /shop reload /shop stats /shop search /shop teleport /shop give /shop debug /shop backup /shop restore /shop inspect

Configuration

Configurable:

INVENTORY GUI

Sounds

Messages

Holograms

Taxes

Categories

Particles

Economy

Database

Discord

Permissions

Polish

Adventure API text.

MiniMessage support.

PlaceholderAPI support.

Vault economy.

LuckPerms integration.

WorldGuard integration.

Excellent tab completion.

Full localization.

Clean YAML configs.

No deprecated APIs.

Production-quality code with SOLID architecture.

Extensive logging and error handling.

Memory leak prevention.

Full JavaDocs and comments.

Zero compiler warnings and no runtime errors.

This would turn the original ChestShop project into a modern, premium-quality ChestShop plugin comparable to commercial plugins while remaining stable and optimized for large Paper/Purpur 1.21.11 servers.

Kodari AI
KodariAug 3 at 5:33 pm 160
  1. Correct hologram lifecycle, position, rendering, and chest protection foundations.

  2. Add the owner sneak-right-click 54-slot shop editor and stock controls.

  3. Implement persisted shop metadata, transactions, statistics, search, ratings, and favorites.

  4. Add commands, configuration, integrations, notifications, and performance-safe persistence.

  1. Holograms now use compact built-in TextDisplays: single chests are centered at +0.30, double chests use their true midpoint, and existing displays are updated in place to prevent flicker. Shop, stock, reload, chunk, chest-placement, break, and explosion lifecycles now refresh or protect them.

  1. Owner-controlled shops now persist their creator; the editor will expose only the capabilities the current data model actually supports: item, price, category, status, maintenance, chest stock transfer, and deletion.

  1. Done: sneak-right-clicking a linked chest opens a 54-slot owner/admin editor for item, price, category, availability, maintenance, stock import/export, and deletion.

  1. Transaction persistence, shop statistics, and /shop search|history|stats have been wired into the shop flow. Ratings, favorites, and the full browser still require their own persisted data models rather than unsafe placeholder implementations.

Kodari can make mistakes. Review important code before using.
Files
.github
src
pom.xml
README.md
Code
37 2,059
src/main/java/me/itzmetechu/rebirthshop/RebirthShopPlugin.java
package me.itzmetechu.rebirthshop;

import me.itzmetechu.rebirthshop.command.RebirthShopCommand;
import me.itzmetechu.rebirthshop.hook.RebirthShopExpansion;
import me.itzmetechu.rebirthshop.listener.ChestListener;
import me.itzmetechu.rebirthshop.listener.ShopEditorListener;
import me.itzmetechu.rebirthshop.listener.ShopListener;
import me.itzmetechu.rebirthshop.listener.StockListener;
import me.itzmetechu.rebirthshop.service.HologramService;
import me.itzmetechu.rebirthshop.service.Messages;
import me.itzmetechu.rebirthshop.service.PurchaseLimitService;
import me.itzmetechu.rebirthshop.service.ShopService;
import me.itzmetechu.rebirthshop.service.TransactionService;
import me.itzmetechu.rebirthshop.service.WebhookService;
import me.itzmetechu.rebirthshop.storage.ShopRepository;
import me.itzmetechu.rebirthshop.storage.TransactionRepository;
import me.itzmetechu.rebirthshop.storage.YamlTransactionRepository;
import net.milkbowl.vault.economy.Economy;
import org.bukkit.command.PluginCommand;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.plugin.RegisteredServiceProvider;
import org.bukkit.plugin.java.JavaPlugin;

import java.io.File;
import java.util.Objects;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public final class RebirthShopPlugin extends JavaPlugin {
    private ExecutorService databaseExecutor;
    private ShopRepository repository;
    private TransactionRepository transactionRepository;
    private ShopService shops;
    private Messages messages;
    private WebhookService webhooks;
    private HologramService holograms;
    private TransactionService transactions;

    @Override
    public void onEnable() {
        saveDefaultResources();
        Economy economy = resolveEconomy();
        if (economy == null) {
            getLogger().severe("Vault economy provider not found. RebirthShop has been disabled.");
            getServer().getPluginManager().disablePlugin(this);
            return;
        }

        databaseExecutor = Executors.newFixedThreadPool(2, runnable -> {
            Thread thread = new Thread(runnable, "RebirthShop-Storage");
            thread.setDaemon(true);
            return thread;
        });
        YamlConfiguration config = YamlConfiguration.loadConfiguration(new File(getDataFolder(), "config.yml"));
        messages = new Messages(new File(getDataFolder(), "messages.yml"), getServer().getPluginManager().isPluginEnabled("PlaceholderAPI"));
        webhooks = new WebhookService(new File(getDataFolder(), "webhooks.yml"), getLogger());
        repository = new YamlShopRepository(new File(getDataFolder(), "shops.yml"), databaseExecutor);
        transactionRepository = new YamlTransactionRepository(new File(getDataFolder(), "transactions.yml"), databaseExecutor);
        transactions = new TransactionService(transactionRepository, getLogger());
        holograms = new HologramService(this, getLogger(), new File(getDataFolder(), "holograms.yml"), config.getBoolean("holograms.enabled", true));
        holograms.detect();
        shops = new ShopService(repository, economy, new PurchaseLimitService(), webhooks, getLogger(), holograms, transactions, config.getInt("low-stock-threshold", 10));

        getServer().getPluginManager().registerEvents(new ShopListener(shops, messages), this);
        getServer().getPluginManager().registerEvents(new StockListener(shops), this);
        getServer().getPluginManager().registerEvents(new ChestListener(shops), this);
        getServer().getPluginManager().registerEvents(new ShopEditorListener(shops), this);
        RebirthShopCommand command = new RebirthShopCommand(shops, transactions, messages, this::reloadPlugin);
        for (String name : new String[]{"rebirthshop", "shop"}) {
            PluginCommand registered = Objects.requireNonNull(getCommand(name), "Missing command " + name);
            registered.setExecutor(command);
            registered.setTabCompleter(command);
        }
        if (getServer().getPluginManager().isPluginEnabled("PlaceholderAPI")) {
            new RebirthShopExpansion(shops).register();
        }
        transactionRepository.load().thenAccept(transactions::load);
        repository.load().thenAccept(loaded -> getServer().getScheduler().runTask(this, () -> shops.load(loaded)))
                .exceptionally(exception -> {
                    getLogger().severe("Unable to load shops: " + exception.getMessage());
                    return null;
                });
        getLogger().info("RebirthShop v1.0.0 enabled. Developer: ItzMeTechu");
    }

    @Override
    public void onDisable() {
        if (holograms != null) holograms.removeAll();
        if (repository != null) repository.close();
        if (transactionRepository != null) transactionRepository.close();
        if (databaseExecutor != null) databaseExecutor.shutdown();
    }

    private void reloadPlugin() {
        reloadConfig();
        messages.reload();
        webhooks.reload();
        YamlConfiguration config = YamlConfiguration.loadConfiguration(new File(getDataFolder(), "config.yml"));
        shops.setLowStockThreshold(config.getInt("low-stock-threshold", 10));
        repository.load().thenAccept(loaded -> getServer().getScheduler().runTask(this, () -> shops.load(loaded)));
    }

    private Economy resolveEconomy() {
        RegisteredServiceProvider<Economy> registration = getServer().getServicesManager().getRegistration(Economy.class);
        return registration == null ? null : registration.getProvider();
    }

    private void saveDefaultResources() {
        for (String resource : new String[]{"config.yml", "messages.yml", "shops.yml", "categories.yml", "webhooks.yml", "database.yml", "limits.yml", "schedule.yml", "holograms.yml", "lang.yml", "transactions.yml"}) {
            File destination = new File(getDataFolder(), resource);
            if (!destination.exists()) saveResource(resource, false);
        }
    }
}