nacho_ninja1

make me a shop plugin that can be edited and shop is named WAFFLE SHOP with the waffle color and the shop is exactly like donut one but with blocks and when they buy there is plus 30 and plus one and plus 64 same with the minus

Kodari AI
KodariOct 1 at 5:53 pm 1
WaffleShopPlugin
Creates a customizable Waffle Shop plugin for Minecraft that allows players to buy and sell blocks. The shop features a waffle-themed interface with golden-brown coloring. Players can purchase items in quantities of 1, 30, or 64 using the plus buttons, and sell items using the corresponding minus buttons. The shop interface is fully editable through configuration files, allowing server administrators to adjust prices, item types, and available stock. The plugin includes a graphical user interface with waffle-patterned menus, transaction logging, and permission-based access control. Supports both buy and sell operations with dynamic pricing updates and inventory management.
  1. Add a Paper plugin with Vault economy integration and /waffleshop management.

  2. Create an editable, waffle-themed block shop with category browsing and quantity controls for ±1, ±30, and ±64.

Created WaffleShop with a gold-and-brown WAFFLE SHOP GUI, block categories, and quantity selection buttons for +1, +30, +64 and −1, −30, −64. Players can purchase blocks through Vault; prices, categories, items, and titles are editable in shops.yml. Use /waffleshop reload to apply changes.

Requires Vault and a Vault-compatible economy provider.

nacho_ninja1

i want u can buy that essential and vault with money and wtf is id and make that u can do back and next

Kodari AI
KodariOct 1 at 6:13 pm 1
  1. Check the current money setup and explain what “ID” means in this shop.

  2. Add working Back/Next navigation for shop pages.

The shop now uses EssentialsX money through Vault—both need to be installed, with an economy provider enabled.

Back/Next page arrows now work. The default is 7 products per page, so the Building Blocks list has a Next page; change shop.items-per-page in shops.yml to adjust that.

An ID is just a config key, such as building or stone. It’s for the plugin to locate an entry; players see the configured name instead.

nacho_ninja1

build it

Kodari AI
KodariOct 1 at 6:14 pm 1

I can’t build the JAR in this environment: the project has no Gradle wrapper, and Gradle isn’t available here. From the project folder on your computer, run gradle build; the plugin JAR will be in build/libs/.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
8 650
src/main/java/com/kodari/waffleshop/WaffleShopPlugin.java
package com.kodari.waffleshop;

import net.milkbowl.vault.economy.Economy;
import org.bukkit.Bukkit;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.command.PluginCommand;
import org.bukkit.entity.Player;
import org.bukkit.plugin.RegisteredServiceProvider;
import org.bukkit.plugin.java.JavaPlugin;

public final class WaffleShopPlugin extends JavaPlugin implements CommandExecutor {

    private Economy economy;
    private ShopManager shopManager;

    @Override
    public void onEnable() {
        if (!setupEconomy()) {
            getLogger().severe("Vault and a Vault-compatible economy provider are required.");
            Bukkit.getPluginManager().disablePlugin(this);
            return;
        }

        if (!getDataFolder().exists() && !getDataFolder().mkdirs()) {
            getLogger().severe("Could not create the plugin data folder.");
            Bukkit.getPluginManager().disablePlugin(this);
            return;
        }

        saveResource("shops.yml", false);
        shopManager = new ShopManager(this, economy);
        PluginCommand command = getCommand("waffleshop");
        if (command == null) {
            getLogger().severe("The waffleshop command is missing from plugin.yml.");
            Bukkit.getPluginManager().disablePlugin(this);
            return;
        }
        command.setExecutor(this);
        getServer().getPluginManager().registerEvents(new ShopListener(shopManager), this);
    }

    private boolean setupEconomy() {
        if (Bukkit.getPluginManager().getPlugin("Vault") == null) {
            return false;
        }
        RegisteredServiceProvider<Economy> registration = getServer().getServicesManager().getRegistration(Economy.class);
        if (registration == null) {
            return false;
        }
        economy = registration.getProvider();
        return economy != null;
    }

    @Override
    public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
        if (args.length > 0 && args[0].equalsIgnoreCase("reload")) {
            if (!sender.hasPermission("waffleshop.admin")) {
                sender.sendMessage("&cYou do not have permission to do that.");
                return true;
            }
            shopManager.reload();
            sender.sendMessage("&aWaffle Shop configuration reloaded.");
            return true;
        }

        if (args.length > 0) {
            sender.sendMessage("&eUsage: /waffleshop [reload]");
            return true;
        }
        if (!(sender instanceof Player player)) {
            sender.sendMessage("Only players can open the shop.");
            return true;
        }
        shopManager.openCategories(player, 0);
        return true;
    }
}