red_bones11

make me a minecraft plugin for papermc 1.21.11 where if you do the command /redstoneshop it will bring up a INVENTORY GUI and you can buy all redstone materals with money

Kodari AI
KodariApr 22 at 8:14 am 8,096 (v2)

I’ll create a comprehensive redstone shop plugin with an interactive inventory GUI and economy integration.

RedstoneShop
An interactive GUI-based shop plugin for purchasing redstone materials. Features a complete inventory menu with all redstone components including pistons, repeaters, comparators, observers, hoppers, and more. Integrates with Vault economy for secure transactions. Includes configurable prices, customizable messages, and permission-based access control.

All files created successfully! The RedstoneShop plugin is ready with:

Features:

  • Interactive 54-slot GUI with 25+ redstone materials

  • Vault economy integration for purchases

  • Configurable prices and messages

  • Permission system (redstoneshop.use)

  • Sound effects for purchases and errors

  • Inventory full protection

  • XSeries for cross-version compatibility

Usage: Players use /redstoneshop (aliases: /rsshop, /rshop) to open the shop GUI and click items to purchase them with in-game money.

red_bones11

make a plguin for papermc for 1.21.11 for sell INVENTORY GUI like donut smp where it will open a INVENTORY GUI when you typ /sell and up can put what ever items you want tot sell in the INVENTORY GUI

Kodari AI
KodariApr 22 at 8:56 am 10,775 (v2)

I’ll create a brand new sell GUI plugin for PaperMC 1.21.11 where players can place items to sell them for money, like Donut SMP.

I’ll create a brand new sell GUI plugin where players can place items to sell them for money!

Perfect! I’ve created a complete sell GUI plugin for PaperMC 1.21.11. Here’s what it does:

Features:

  • /sell command opens a 54-slot GUI with 45 item slots + decorative bottom row

  • Players place items they want to sell in the top 45 slots

  • Real-time value calculator updates the emerald “Sell All” button

  • Click the emerald to sell everything instantly for money

  • Items returned to inventory when closing GUI

  • 60+ pre-configured item prices in config.yml

  • Vault economy integration

  • XSeries for cross-version compatibility

  • Sound effects for sold/errors

How it works:

  1. Players type /sell to open the GUI

  2. Place items in any of the 45 slots

  3. The emerald button shows total value

  4. Click emerald to sell all items for money

  5. Close GUI to get unsold items back

All prices are fully configurable in config.yml!

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
21 1,054
src/main/java/com/sellgui/SellGUI.java
package com.sellgui;

import com.sellgui.command.SellCommand;
import com.sellgui.inventory.gui.GUIListener;
import com.sellgui.inventory.gui.GUIManager;
import com.sellgui.manager.ConfigManager;
import com.sellgui.manager.PriceManager;
import lombok.Getter;
import net.milkbowl.vault.economy.Economy;
import org.bukkit.Bukkit;
import org.bukkit.plugin.RegisteredServiceProvider;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class SellGUI extends JavaPlugin {
    private GUIManager guiManager;
    private Economy economy;
    private ConfigManager configManager;
    private PriceManager priceManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.configManager = new ConfigManager(this);
        this.priceManager = new PriceManager(this);
        
        if (!setupEconomy()) {
            getLogger().severe("Vault not found! Disabling plugin...");
            Bukkit.getPluginManager().disablePlugin(this);
            return;
        }
        
        this.guiManager = new GUIManager();
        
        GUIListener guiListener = new GUIListener(guiManager);
        Bukkit.getPluginManager().registerEvents(guiListener, this);
        
        getCommand("sell").setExecutor(new SellCommand(this));
        
        getLogger().info("SellGUI enabled successfully!");
    }
    
    @Override
    public void onDisable() {
        getLogger().info("SellGUI disabled!");
    }
    
    private boolean setupEconomy() {
        if (Bukkit.getPluginManager().getPlugin("Vault") == null) {
            return false;
        }
        RegisteredServiceProvider<Economy> rsp = getServer().getServicesManager().getRegistration(Economy.class);
        if (rsp == null) {
            return false;
        }
        economy = rsp.getProvider();
        return economy != null;
    }
}