ilovecuriousgeorge

Make it like that the sell

--- ๐Ÿ“Ž Attached 1 file(s):

File: message-7.txt

txt
# ๐Ÿฉ CHURROECONOMY โ€” ULTIMATE ALL-IN-ONE ECONOMY PLUGIN

Build a **massive, professional, production-ready Minecraft economy plugin** called **ChurroEconomy** for **Paper 1.21.11**.

This must be a complete economy platform for **ChurroSMP**, not a basic `/balance` plugin.

The plugin needs a premium, large-server-quality INVENTORY GUI system inspired by modern Minecraft SMP servers while using completely original **ChurroSMP branding, layouts, names, colours, icons, and functionality**.

Everything must be genuinely functional.

Do NOT create:

* Fake buttons
* Fake menus
* Placeholder features
* Non-functional commands
* Dummy transaction data
* Visual-only systems
* Unfinished integrations

Every button and command must perform its advertised function.

---

# ๐Ÿฉ 1. CHURROSMP DESIGN

Use a premium ChurroSMP style throughout the plugin.

Default visual direction:

* Dark Minecraft aesthetic
* Orange/gold Churro accents
* Brown/cream secondary colours
* Black/dark backgrounds
* Minecraft item icons
* Player heads
* Glass-pane decorations
* Clean spacing
* Modern INVENTORY GUI layouts
* Custom lore
* Hover information
* Consistent buttons
* Back buttons
* Close buttons
* Pagination
* Search menus
* Confirmation menus
* Configurable sounds
* Configurable animations

All INVENTORY GUI designs must be configurable.

---

# โš ๏ธ 2. COMMAND RULES

## `/ec`

This command is **ONLY** for the Ender Chest.
text /ec
text
/economy
/eco
/bal
/balance
/pay <player> <amount>
/baltop

1 image attached
Kodari AI
KodariAug 18 at 2:12 pm 5
ChurroEconomy
A comprehensive economy plugin for Paper 1.21.11 featuring a full transaction system, player balances, payments, baltop leaderboard, and a large configurable sell GUI. Includes a massive ender chest system, receipt/history GUI with filters and search, admin economy commands with mass operations and LuckPerms group support, maintenance modes for sell/shop/economy features, Vault and PlaceholderAPI integration, SQLite/MySQL database storage, configurable currency formatting, sounds, and inventory GUI layouts. Provides a complete ChurroSMP-branded economy ecosystem with analytics, backups, and security protections.
  1. Create the Paper 1.21.11 Gradle project and plugin metadata.

  2. Implement persistent balances, transactions, formatting, and optional Vault/PlaceholderAPI bridges.

  3. Add the ChurroSMP sell GUI with live pricing, safe item return, receipts, and maintenance controls.

  4. Add economy, payment, receipt/history, leaderboard, and custom Ender Chest commands/menus.

Built the initial ChurroEconomy project from scratch with:

  • Paper 1.21.11 Gradle setup and plugin metadata

  • Persistent YAML economy and transaction storage

  • /bal, /balance, /pay, /baltop, /eco

  • /sell premium 54-slot ChurroSMP sell GUI

  • Live sell value updates

  • Configurable item prices

  • Unsupported item protection and safe return on close

  • Sell receipts with transaction IDs

  • /ecoreceipt history GUI and detailed receipt view

  • /economy dashboard GUI

  • /ec persistent custom Ender Chest

  • Sell, payment, shop, and economy maintenance commands

  • Vault economy provider

  • PlaceholderAPI expansion

  • Configurable currency, messages, sounds, prices, and GUI titles

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
22 1,100
src/main/java/com/churrosmp/churroeconomy/ChurroEconomy.java
package com.churrosmp.churroeconomy;

import com.churrosmp.churroeconomy.command.ChurroCommand;
import com.churrosmp.churroeconomy.economy.EconomyService;
import com.churrosmp.churroeconomy.enderchest.EnderChestService;
import com.churrosmp.churroeconomy.gui.GUIListener;
import com.churrosmp.churroeconomy.gui.GUIManager;
import com.churrosmp.churroeconomy.integration.ChurroPlaceholderExpansion;
import com.churrosmp.churroeconomy.integration.VaultEconomyProvider;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.plugin.ServicePriority;
import org.bukkit.plugin.java.JavaPlugin;

public final class ChurroEconomy extends JavaPlugin {
    private EconomyService economy;
    private EnderChestService enderChest;
    private GUIManager guiManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        saveResource("messages.yml", false);
        economy = new EconomyService(this);
        enderChest = new EnderChestService(this);
        guiManager = new GUIManager(this, economy, enderChest);
        Bukkit.getPluginManager().registerEvents(new GUIListener(guiManager), this);
        ChurroCommand command = new ChurroCommand(this, economy, guiManager, enderChest);
        String[] commands = {"ec", "economy", "eco", "bal", "pay", "baltop", "sell", "ecoreceipt", "sellmaintenance", "shopmaintenance", "economymaintenance"};
        for (String name : commands) {
            if (getCommand(name) != null) {
                getCommand(name).setExecutor(command);
                getCommand(name).setTabCompleter(command);
            }
        }
        if (Bukkit.getPluginManager().getPlugin("Vault") != null) {
            getServer().getServicesManager().register(net.milkbowl.vault.economy.Economy.class, new VaultEconomyProvider(economy), this, ServicePriority.Normal);
        }
        if (Bukkit.getPluginManager().getPlugin("PlaceholderAPI") != null) new ChurroPlaceholderExpansion(this, economy).register();
        long interval = Math.max(60L, getConfig().getLong("economy.save-interval-seconds", 300L)) * 20L;
        Bukkit.getScheduler().runTaskTimer(this, economy::save, interval, interval);
    }

    @Override
    public void onDisable() {
        if (guiManager != null) guiManager.closeAll();
        if (enderChest != null) enderChest.saveAll();
        if (economy != null) economy.save();
    }

    public String message(String key, String... replacements) {
        org.bukkit.configuration.file.FileConfiguration messages = org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(new java.io.File(getDataFolder(), "messages.yml"));
        String text = messages.getString(key, key);
        for (int i = 0; i + 1 < replacements.length; i += 2) text = text.replace("{" + replacements[i] + "}", replacements[i + 1]);
        return ChatColor.translateAlternateColorCodes('&', text);
    }

    public EconomyService getEconomy() { return economy; }
    public EnderChestService getEnderChest() { return enderChest; }
    public GUIManager getGuiManager() { return guiManager; }
}