minuntya_78175

a shop plugin with a scoreboard and a money system built in and make the scoreboard have money playtime and shards

Kodari AI
KodariApr 7 at 2:36 am 16,403 (v2)

I’ll create a comprehensive shop plugin with a built-in dual-currency economy system and live scoreboard.

CustomShop
A complete shop plugin featuring a built-in dual-currency economy system with money and shards. Players can buy and sell items through an intuitive GUI shop interface. Includes a live scoreboard that displays current money, shards, and playtime for all online players. Fully configurable shop items with custom prices in both currencies. Admins can manage player balances and add custom shop items through commands and configuration files.

All files created successfully!

CustomShop is now ready with:

  • Dual-currency economy (money & shards) with no external dependencies

  • Interactive shop GUI with buy/sell for configurable items

  • Live scoreboard displaying money, shards, and playtime

  • Admin commands for balance management

  • Automatic data saving and playtime tracking

  • Full XSeries cross-version compatibility (1.8-1.21+)

minuntya_78175

can you put the download

Kodari AI
KodariApr 7 at 2:36 am 1,092 (v2)

I need clarification on what you’d like me to do. Could you please specify:

  1. Add a download command/feature to the plugin? (e.g., /shop download to download items or data)

  2. Add build artifacts/distribution setup? (e.g., configure Gradle to output the JAR file somewhere specific)

  3. Add a download link or resource? (e.g., add a download URL to config or documentation)

  4. Something else related to “download”?

Please let me know what you need and I’ll implement it right away.

minuntya_78175

nevermind

Kodari AI
KodariApr 7 at 2:37 am 830 (v2)

No problem! Let me know if you need anything else with your CustomShop plugin.

minuntya_78175

can you make the shop plugin have a pvp secsion and other stuff like food blocks redstone and all that

Kodari AI
KodariApr 7 at 2:48 am 19,686 (v2)

I’ll read the existing files to understand the structure, then add multiple shop categories including PvP, Food, Blocks, Redstone, and more.

I’ll add multiple shop categories (PvP, Food, Blocks, Redstone, Tools, Armor, Misc) with a category selection menu.

Added shop categories with category selection menu! The shop now has 7 categories (PvP, Food, Blocks, Redstone, Tools, Armor, Misc) with 80+ items. Players click a category to browse items, and can use the back button to return to categories.

minuntya_78175

can you make it where i can change prices and add and remove items

Kodari AI
KodariApr 7 at 2:54 am 13,394 (v2)

I’ll read the existing files to understand the structure, then add admin commands for managing shop items and prices.

I’ll add admin commands to change prices, add items, and remove items from the shop. This will include commands to modify existing items and reload the shop configuration.

Added complete shop management system with the /shopadmin command that allows you to:

Commands:

  • /shopadmin add <id> <category> <material> <slot> - Add new items to the shop

  • /shopadmin remove <id> - Remove items from the shop

  • /shopadmin setbuyprice <id> <money> <shards> - Change buy prices

  • /shopadmin setsellprice <id> <money> <shards> - Change sell prices

  • /shopadmin setslot <id> <slot> - Move items to different slots

  • /shopadmin setcategory <id> <category> - Change item categories

  • /shopadmin setname <id> <display name> - Change display names

  • /shopadmin reload - Reload shop configuration

  • /shopadmin list [category] - List all items or items in a category

All changes are automatically saved to config.yml and take effect immediately without needing a server restart. Tab completion is included for easy command usage.

minuntya_78175

can you make it where i can change around the scoreboard

Kodari AI
KodariApr 7 at 2:57 am 14,843 (v2)

I’ll read the existing files to understand the current scoreboard implementation, then make it fully configurable.

I’ll make the scoreboard fully customizable with configurable lines, placeholders, and line ordering.

The scoreboard is now fully customizable! You can:

Available placeholders:

  • {money} - Player’s money balance

  • {shards} - Player’s shards

  • {playtime} - Formatted playtime

Customize in config.yml:

  • Reorder lines by moving them up/down

  • Add/remove lines

  • Change colors and text

  • Add blank lines with empty strings ("")

  • Mix static text with placeholders

Example alternative layouts you can try:

YAML
scoreboard:
  lines:
    - "&e&l ▸ STATS ◂"
    - ""
    - "&a💰 &f{money}"
    - "&d✦ &f{shards}"
    - "&b⏱ &f{playtime}"
minuntya_78175

can you create a scoreboard with playtime money and shards and the players user also make it a little big

Kodari AI
KodariApr 7 at 3:07 am 15,758 (v2)

I’ll create a comprehensive scoreboard system. Let me first read the existing files to understand the current structure.

I’ll enhance the scoreboard to include the player’s username and make it more prominent with better formatting.

Enhanced scoreboard with player name, better formatting, decorative elements, and larger display including money, shards, and playtime.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
19 2,792
src/main/java/com/customshop/CustomShop.java
package com.customshop;

import com.customshop.commands.BalanceCommand;
import com.customshop.commands.EconomyCommand;
import com.customshop.commands.ShopAdminCommand;
import com.customshop.commands.ShopCommand;
import com.customshop.data.PlayerDataManager;
import com.customshop.economy.EconomyManager;
import com.customshop.listeners.JoinQuitListener;
import com.customshop.listeners.ShopListener;
import com.customshop.managers.ConfigManager;
import com.customshop.managers.ScoreboardManager;
import com.customshop.shop.ShopManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class CustomShop extends JavaPlugin {
    
    private ConfigManager configManager;
    private PlayerDataManager playerDataManager;
    private EconomyManager economyManager;
    private ShopManager shopManager;
    private ScoreboardManager scoreboardManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.configManager = new ConfigManager(this);
        this.playerDataManager = new PlayerDataManager(this);
        this.economyManager = new EconomyManager(this);
        this.shopManager = new ShopManager(this);
        this.scoreboardManager = new ScoreboardManager(this);
        
        registerCommands();
        registerListeners();
        
        this.scoreboardManager.startUpdateTask();
        this.playerDataManager.startAutoSave();
        
        getLogger().info("CustomShop has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (scoreboardManager != null) {
            scoreboardManager.stopUpdateTask();
        }
        if (playerDataManager != null) {
            playerDataManager.stopAutoSave();
            playerDataManager.saveAll();
        }
        getLogger().info("CustomShop has been disabled!");
    }
    
    private void registerCommands() {
        getCommand("shop").setExecutor(new ShopCommand(this));
        getCommand("money").setExecutor(new EconomyCommand(this));
        getCommand("shards").setExecutor(new EconomyCommand(this));
        getCommand("balance").setExecutor(new BalanceCommand(this));
        getCommand("setmoney").setExecutor(new EconomyCommand(this));
        getCommand("setshards").setExecutor(new EconomyCommand(this));
        
        ShopAdminCommand shopAdminCommand = new ShopAdminCommand(this);
        getCommand("shopadmin").setExecutor(shopAdminCommand);
        getCommand("shopadmin").setTabCompleter(shopAdminCommand);
    }
    
    private void registerListeners() {
        getServer().getPluginManager().registerEvents(new JoinQuitListener(this), this);
        getServer().getPluginManager().registerEvents(new ShopListener(this), this);
    }
}