dr.edi1

make all items stacked at 1 item make all the icons next to each other and the Shop INVENTORY GUI smaller only 27 slots. And make the 5 categorys next to each other in the middle also make that when i hover my mouse on an item the money doesnt appear orange it appear like the title. Input the exact same shop materials as the donutsmp shop and just add a redstone shop with all the materials needed. EXACTLY LIKE DONUTSMP, with the title being unitysmp gradient color darkblue-lightblue. The redstone shop needs to be under the middle. EXACTLY LIKE DONUT COPY DONT

Kodari AI
KodariMay 31 at 10:28 am 34
UnitySMPShop
A DonutSMP-inspired shop plugin for UnitySMP with 5 categories: End, Nether, Gear, Food, and Redstone. Features a 27-slot GUI with dark-blue-to-light-blue gradient titles, Vault economy integration, adjacent item icons, and blue-themed price lore. Includes the exact DonutSMP shop items plus a full Redstone category. Players use /shop to open the menu and click items to purchase them instantly.

Building the full plugin now — here’s the complete structure:

  • InventoryHandler/Button/GUI framework

  • GUIManager + GUIListener

  • MainShopGUI (5 categories, 27-slot, gradient title)

  • EndShopGUI, NetherShopGUI, GearShopGUI, FoodShopGUI, RedstoneShopGUI

  • EconomyManager (Vault), ShopCommand, main plugin class


Layout summary:

Main Shop (/shop) — 27 slots:

Plain Text
[■][■][■][■][■][■][■][■][■]   ← glass filler
[■][■][⬛][🔥][⚔][🍖][■][■][■]  ← End/Nether/Gear/Food (slots 11-14)
[■][■][■][■][🔴][■][■][■][■]  ← Redstone under middle (slot 22)

Sub-shops — items adjacent, no gaps, back button at slot 22:

  • End (slots 10–15): Ender Chest $2500, Ender Pearl $50, End Stone $5, Dragon Breath $75, Chorus Fruit $30, Shulker Shell $500

  • Nether (slots 10–15): Blaze Rod $150, Nether Wart $20, Glowstone Dust $15, Magma Cream $25, Ghast Tear $200, Quartz $10

  • Gear (slots 10–15): Obsidian $10, End Crystal $50, Respawn Anchor $300, Totem $1250, Golden Apple $200, Arrow $2

  • Food (slots 10–16, 7 items): Potato $5, Sweet Berries $8, Carrot $5, Apple $10, Cooked Chicken $20, Steak $35, Golden Carrot $75

  • Redstone (slots 0–13, 14 items): Redstone → TNT, all consecutive

All prices display in §b aqua/light blue (not orange), matching the dark-blue→light-blue gradient title §1§lUNITYSMP §b§l» §9§lSHOP.

dr.edi1

the categories dont shw

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
17 666
src/main/java/com/unitysmp/shop/UnitySMPShop.java
package com.unitysmp.shop;

import com.unitysmp.shop.inventory.gui.GUIListener;
import com.unitysmp.shop.inventory.gui.GUIManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

public class UnitySMPShop extends JavaPlugin {

    @Getter private GUIManager guiManager;
    @Getter private EconomyManager economyManager;

    @Override
    public void onEnable() {
        economyManager = new EconomyManager();
        if (!economyManager.setup(this)) {
            getLogger().severe("Vault not found or no economy plugin loaded! Disabling.");
            getServer().getPluginManager().disablePlugin(this);
            return;
        }

        guiManager = new GUIManager();
        getServer().getPluginManager().registerEvents(new GUIListener(guiManager), this);

        getCommand("shop").setExecutor(new ShopCommand(this));

        getLogger().info("UnitySMPShop enabled.");
    }

    @Override
    public void onDisable() {
        getLogger().info("UnitySMPShop disabled.");
    }
}