Šima

build me whole shop with shards and name it axyroshop command to open it /shop and giving will be /eco2 give money and etc

Kodari AI
KodariSep 21 at 8:04 pm 1
AxyroShop
A comprehensive Minecraft shop plugin featuring a shard-based economy system. Players open the main shop interface via /shop command, browse items, and purchase using shards. Includes admin commands for managing inventory, pricing, and shard distribution. Integrated /eco2 give command allows administrators to grant shards to players, with full transaction logging and configurable shop categories. Supports item restocking, buy/sell functionality, and a user-friendly GUI menu system for seamless shopping experience.

Built AxyroShop from scratch.

Features:

  • /shop opens the shard-based GUI shop.

  • Configurable categories and products in config.yml.

  • Shard currency saved to shards.yml.

  • Item rewards and console command rewards.

  • Supports commands such as:

    • eco2 give {player} 1000

    • eco2 give {player} 10000

  • Admin shard management:

    • /shards balance

    • /shards balance <player>

    • /shards give <player> <amount>

    • /shards take <player> <amount>

    • /shards set <player> <amount>

  • Inventory click and drag protection.

  • Configurable GUI titles, icons, prices, lore, rewards, and messages.

Main files created:

  • build.gradle

  • plugin.yml

  • config.yml

  • AxyroShop.java

  • ShopManager.java

  • ShardManager.java

  • GUI, command, listener, category, and product classes.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
13 768
src/main/java/com/axyro/axyroshop/AxyroShop.java
package com.axyro.axyroshop;

import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

public final class AxyroShop extends JavaPlugin {

    private ShardManager shardManager;
    private ShopManager shopManager;

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

        shardManager = new ShardManager(this);
        shopManager = new ShopManager(this, shardManager);

        ShopCommand shopCommand = new ShopCommand(this, shopManager);
        PluginCommand shop = getCommand("shop");
        if (shop != null) {
            shop.setExecutor(shopCommand);
        }

        ShardCommand shardCommand = new ShardCommand(this, shardManager);
        PluginCommand shards = getCommand("shards");
        if (shards != null) {
            shards.setExecutor(shardCommand);
            shards.setTabCompleter(shardCommand);
        }

        getServer().getPluginManager().registerEvents(new ShopListener(shopManager), this);
    }

    @Override
    public void onDisable() {
        if (shardManager != null) {
            shardManager.save();
        }
    }

    public ShardManager getShardManager() {
        return shardManager;
    }

    public ShopManager getShopManager() {
        return shopManager;
    }
}