U

PROJECT

Plugin Name: RebirthShop Display Name: Rebirth Shop

Developer:

ItzMeTechu

Server Software:

Purpur 1.21.11

Java:

Java 21

Build Tool:

Gradle Kotlin DSL

Package: com.underworld.rebirthshop

Plugin Version: 1.0.0

License:

Private - Underworld Rebirth

Purpose:

Create the most modern, premium, lightweight, modular, enterprise-grade economy and shop plugin for Underworld Rebirth. The plugin must feel like a AAA Minecraft plugin with beautiful INVENTORY GUI, animations, excellent performance, clean architecture, and complete configurability.

======================================== DESIGN GOALS ========================================

• Premium Purple Theme • Ultra Smooth INVENTORY GUI • No Lag • Async Database Operations • Modular Architecture • Production Ready • Reload Safe • Memory Efficient • Enterprise Code Quality • SOLID Principles • Extensive API • PlaceholderAPI Support • Vault Support • LuckPerms Support • MiniMessage Support • Adventure API • Packet Based Animations • Full Discord Integration

======================================== CURRENCY ========================================

Currency Name:

Rebirth Coin

Symbol: ⛁

Short:

RC

Display Example:

⛁ 2,450 Rebirth Coins

Currency should support:

  • decimals disabled
  • commas
  • configurable formatting
  • PlaceholderAPI placeholders

Examples:

%rebirthshop_balance%

%rebirthshop_top_1%

%rebirthshop_rank%

======================================== ECONOMY ========================================

Balanced Economy

NO OP ITEMS

No pay-to-win mechanics.

Economy must encourage:

Mining

Farming

Exploration

Trading

Fishing

Mob Hunting

Building

Player Shops

Auction House

======================================== SHOP CATEGORIES ========================================

General Store

Food

Mining

Farming

Wood

Stone

Decoration

Redstone

Nether

End

Tools

Armor

Weapons

Enchantments

Potions

Transportation

Animals

Mob Drops

Building Blocks

Terracotta

Concrete

Glass

Plants

Flowers

Saplings

Music

Utility

Bundles

Shulker Boxes

Smithing

Copper

Trial Chamber Items

1.21.11 Items

Bundles

Decorative Heads

Special Blocks

Community Shop

Player Market

Seasonal Shop

Daily Rotating Shop

Black Market

======================================== 1.21.11 ITEMS ========================================

Support every obtainable vanilla item available in Minecraft 1.21.11.

Automatically generate configs.

Items should be grouped correctly.

======================================== BLACK MARKET ========================================

Rotates every 24 hours

Rare decorative items

Limited stock

Broadcast when refreshed

Configurable pool

Random pricing

======================================== ROTATING SHOP ========================================

Changes every day

Random items

Configurable amount

INVENTORY GUI countdown

Discord notification

======================================== PLAYER MARKET ========================================

Players create listings

Buy

Sell

Search

Sorting

Filters

Tax

Expiration

Offline selling

Mailbox

Claim earnings

======================================== AUCTION HOUSE ========================================

Timed Auctions

Instant Buy

Bid

Categories

Search

History

Tax

Blacklist Items

Sorting

Favorites

======================================== ADMIN SHOP ========================================

Infinite Stock

Buy

Sell

Price Editing

Categories

Permissions

Discounts

Price Multipliers

======================================== PRICE ENGINE ========================================

Supports:

Static Prices

Dynamic Prices

Supply Demand

Season Multipliers

Server Events

Inflation Control

Maximum Price

Minimum Price

Price History

======================================== INVENTORY GUI ========================================

100% Custom INVENTORY GUI

Purple Theme

Animated

Glass Borders

Gradient Titles

Category Icons

Search

Quick Buy

Favorites

Recently Purchased

Pagination

Back Buttons

Breadcrumb Navigation

Hover Tooltips

Animated Loading

Beautiful Sounds

======================================== SEARCH ========================================

Live Search

Partial Search

Material Search

Category Search

Tag Search

======================================== FAVORITES ========================================

Favorite Items

Pinned Categories

Recent Purchases

Quick Purchase

======================================== SHOP FEATURES ========================================

Buy One

Buy Five

Buy Sixteen

Buy Thirty Two

Buy Stack

Buy Custom Amount

Sell One

Sell Stack

Sell Inventory

Shift Click Support

Double Click Support

======================================== BALANCE FEATURES ========================================

/coins

/balance

/pay

/payall

/baltop

/eco

======================================== COMMANDS ========================================

/shop

/shop search

/shop reload

/shop open

/shop edit

/shop price

/shop givecoins

/shop removecoins

/shop history

/shop stats

/shop blacklist

/shop sync

/shop export

/shop import

======================================== ADMIN PANEL ========================================

Graphical Admin Editor

No config editing required.

Create Categories

Create Items

Edit Prices

Icons

Permissions

Animations

Discounts

Taxes

Everything editable.

======================================== PLAYER STATS ========================================

Items Bought

Items Sold

Money Earned

Money Spent

Favorite Category

Most Purchased Item

Daily Spending

Weekly Spending

Monthly Spending

Lifetime Stats

======================================== LEADERBOARDS ========================================

Richest Players

Highest Buyers

Highest Sellers

Top Traders

Top Market Sellers

======================================== PLAYER PROFILE ========================================

INVENTORY GUI

Avatar

Coins

Rank

Favorite Shop

Statistics

Achievements

======================================== ACHIEVEMENTS ========================================

First Purchase

Trader

Merchant

Millionaire

Collector

Market King

Shopaholic

Explorer

======================================== DISCORD INTEGRATION ========================================

Native Discord Bot

No webhook only.

Supports slash commands.

Commands:

/balance

/shop

/market

/topcoins

/profile

/history

/help

Admin Commands

Give Coins

Take Coins

Open Shop

Broadcast

Daily Shop

Black Market Refresh

Logs

Buttons

Embeds

Modern Purple Theme

Discord Account Linking

Verification

Notifications

Purchase Logs

Market Logs

Auction Logs

Admin Logs

Economy Logs

Join Logs

Leave Logs

======================================== WEBHOOKS ========================================

Support optional webhooks.

Different channels:

Purchases

Sales

Auctions

Admin Actions

Errors

Warnings

Economy

======================================== DATABASE ========================================

Support

SQLite

MariaDB

MySQL

PostgreSQL

Automatic Migration

Connection Pool

Async Queries

======================================== API ========================================

Developer API

Events

PurchaseEvent

SellEvent

BalanceChangeEvent

AuctionEvent

MarketEvent

PlayerProfileEvent

======================================== CONFIG ========================================

Everything configurable.

Messages

Sounds

Animations

Taxes

Currency

Prices

INVENTORY GUI

Icons

Permissions

Cooldowns

Discord

Database

Shop Layout

Category Order

Theme

======================================== PERFORMANCE ========================================

Support:

500+ Players

No TPS Drops

Async Saving

Cache Manager

Packet Optimization

Memory Optimization

Benchmark Mode

======================================== SECURITY ========================================

Permission Checks

Exploit Prevention

NBT Validation

Dupe Protection

Transaction Rollback

Audit Logs

Rate Limiting

======================================== PLACEHOLDERAPI ========================================

Balance

Coins

Top

Market

Auction

Profile

Shop Stats

======================================== PERMISSIONS ========================================

rebirthshop.use

rebirthshop.shop

rebirthshop.market

rebirthshop.auction

rebirthshop.admin

rebirthshop.reload

rebirthshop.edit

rebirthshop.bypass

rebirthshop.discount.vip

rebirthshop.discount.mvp

======================================== BALANCED ECONOMY ========================================

Avoid overpowered progression.

Diamonds should remain valuable.

Netherite should be expensive.

Elytra should not be purchasable from the admin shop.

Totems should only appear occasionally in the Black Market at high prices.

Enchantments above normal survival progression should never be sold.

No creative-only items.

No command blocks.

No bedrock.

No barrier blocks.

No debug stick.

No spawn eggs except if explicitly enabled by admins.

Encourage players to gather, explore, and trade instead of buying everything directly.

======================================== CODE QUALITY ========================================

Enterprise Architecture

Layered Design

Dependency Injection

Service Based

Repository Pattern

Factory Pattern

Builder Pattern

Adventure API

MiniMessage

Paper Best Practices

JavaDocs

Unit Tests

No deprecated APIs

No warnings

Production Ready

======================================== FINAL GOAL ========================================

Develop one of the highest-quality economy and shop plugins available for Purpur 1.21.11. It should be visually stunning with a premium purple aesthetic, fully configurable, optimized for long-term survival gameplay, and designed specifically for the Underworld Rebirth network. The economy should reward gameplay, preserve item value, and provide a polished experience through integrated admin tools, Discord connectivity, player markets, auctions, and a balanced Rebirth Coin economy.

Kodari AI
KodariAug 1 at 2:50 pm 2
RebirthShop
A premium modular economy and shop plugin for the Underworld Rebirth network. RebirthShop provides a configurable Rebirth Coin economy, asynchronous SQLite persistence, category-based inventory shops, balanced item pricing, player payments, leaderboards, PlaceholderAPI support, administrative economy commands, and a polished purple-themed Adventure GUI foundation designed for future markets, auctions, Discord integration, analytics, and extensive developer APIs.
  1. Establish the Gradle Kotlin DSL project and Purpur 1.21.11 plugin metadata.

  2. Build the asynchronous SQLite economy layer with balances, transfers, payments, and leaderboards.

  3. Add configurable shop categories, item pricing, purchases, selling, and inventory GUI navigation.

  4. Add economy/shop commands, PlaceholderAPI placeholders, player caching, and reload support.

  5. Provide production-oriented configuration, permissions, dependencies, and external library manifest.

U

Add items to shop 1.21.11 items

Kodari AI
KodariAug 1 at 3:21 pm 2

Added a new 1.21.x Items shop section to config.yml with:

  • Copper items and variants

  • Copper doors, trapdoors, bulbs, grates, and blocks

  • Trial Chamber items

  • Breeze Rod and Wind Charge

  • Trial Keys and Ominous Trial Keys

  • Heavy Core and Mace

  • Armadillo Scute and Wolf Armor

  • Ominous Bottles

  • Tuff building blocks

  • Flow and Bolt armor trims

  • Flow and Bolt banner patterns

  • Creator and Precipice music discs

  • Pottery Sherds

  • Crafter

  • Bundle

Unsafe or restricted items were included with buy-price: 0 and sell-price: 0, including:

  • Breeze Spawn Egg

  • Trial Spawner

  • Vault

The existing shop loader already supports these entries, so no Java changes were required.

U

Add minecraft items also

Kodari AI
KodariAug 1 at 3:24 pm 2

Added a new Minecraft Items category to config.yml with common vanilla items, including:

  • Dirt, grass, sand, gravel, clay, snow, ice, sponge

  • Bricks, end stone, purpur, magma, soul blocks

  • Netherite materials and blocks

  • Raw ores, amethyst, quartz, diamond, emerald, gold, iron, redstone

  • Apples, cooked foods, berries, pies, cookies

  • Water, lava, and milk buckets

  • Iron, diamond, netherite, and turtle armor

  • Horse armor

  • Music discs

  • Decorative and survival materials

Items include balanced Rebirth Coin buy and sell prices and are automatically loaded by the existing shop configuration system.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle.kts
manifest.kod
settings.gradle.kts
Code
24 2,545
src/main/java/com/underworld/rebirthshop/RebirthShopPlugin.java
package com.underworld.rebirthshop;

import com.underworld.rebirthshop.command.EconomyCommand;
import com.underworld.rebirthshop.command.ShopCommand;
import com.underworld.rebirthshop.config.ConfigManager;
import com.underworld.rebirthshop.database.AccountRepository;
import com.underworld.rebirthshop.database.DatabaseManager;
import com.underworld.rebirthshop.gui.GUIListener;
import com.underworld.rebirthshop.gui.GUIManager;
import com.underworld.rebirthshop.listener.PlayerListener;
import com.underworld.rebirthshop.placeholder.RebirthShopExpansion;
import com.underworld.rebirthshop.service.EconomyService;
import com.underworld.rebirthshop.service.ShopService;
import org.bukkit.Bukkit;
import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

public final class RebirthShopPlugin extends JavaPlugin {
    private ConfigManager configManager;
    private DatabaseManager databaseManager;
    private AccountRepository accountRepository;
    private EconomyService economyService;
    private ShopService shopService;
    private GUIManager guiManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();

        this.configManager = new ConfigManager(this);
        this.databaseManager = new DatabaseManager(this);
        this.databaseManager.initialize();

        this.accountRepository = new AccountRepository(databaseManager);
        this.economyService = new EconomyService(accountRepository, configManager);
        this.shopService = new ShopService(this, economyService, configManager);
        this.shopService.reload();

        this.guiManager = new GUIManager();
        Bukkit.getPluginManager().registerEvents(new GUIListener(guiManager), this);
        Bukkit.getPluginManager().registerEvents(new PlayerListener(economyService), this);

        ShopCommand shopCommand = new ShopCommand(this);
        registerCommand("shop", shopCommand);

        EconomyCommand economyCommand = new EconomyCommand(this);
        registerCommand("coins", economyCommand);
        registerCommand("pay", economyCommand);
        registerCommand("payall", economyCommand);
        registerCommand("baltop", economyCommand);
        registerCommand("eco", economyCommand);

        if (Bukkit.getPluginManager().isPluginEnabled("PlaceholderAPI")) {
            new RebirthShopExpansion(this).register();
            getLogger().info("PlaceholderAPI integration enabled.");
        }

        Bukkit.getScheduler().runTaskTimerAsynchronously(
                this,
                economyService::refreshTopCache,
                20L,
                1200L
        );

        getLogger().info("RebirthShop 1.0.0 enabled.");
    }

    @Override
    public void onDisable() {
        if (databaseManager != null) {
            databaseManager.close();
        }
    }

    private void registerCommand(String name, Object executor) {
        PluginCommand command = getCommand(name);
        if (command == null) {
            getLogger().severe("Command is missing from plugin.yml: " + name);
            return;
        }

        if (executor instanceof ShopCommand shopCommand) {
            command.setExecutor(shopCommand);
            command.setTabCompleter(shopCommand);
        } else if (executor instanceof EconomyCommand economyCommand) {
            command.setExecutor(economyCommand);
            command.setTabCompleter(economyCommand);
        }
    }

    public ConfigManager getConfigManager() {
        return configManager;
    }

    public EconomyService getEconomyService() {
        return economyService;
    }

    public ShopService getShopService() {
        return shopService;
    }

    public GUIManager getGuiManager() {
        return guiManager;
    }
}