fatur Everbody

bikinin saya plugins shop, lengkap pokonya semua barang ada,yang bisa di dapetin di survival. dan shop nya pisah pisah misc,ore,block,potion,weapon,tools,gear,dekorasi,farming buat shop nya juga gampang di akses player bedrock ada pilihan mau beli 1,16 atau 64 dan shop nya bisa saya edit di dalam game. dan edit di panel buat sebagus dan serapih mungkin

Kodari AI
KodariSep 21 at 11:10 am 2
SurvivalMarketHub
A comprehensive survival shop plugin featuring categorized inventories for misc, ores, blocks, potions, weapons, tools, gear, decorations, and farming items. Players access shops through a main menu with separate GUI pages per category. Bedrock-friendly interface includes quantity selection buttons for buying 1, 16, or 64 items. Fully customizable in-game through an admin edit panel, allowing server owners to modify item listings, prices, and categories without restarting. Uses a centralized GUI manager with lazy initialization and button-based event handling for seamless navigation and purchasing.
  1. Membuat struktur plugin Paper/Spigot dengan dukungan Vault dan XSeries.

  2. Menambahkan katalog survival lintas kategori: misc, ore, block, potion, weapon, tools, gear, dekorasi, dan farming.

  3. Membuat GUI ramah Bedrock dengan pilihan jumlah 1, 16, dan 64 untuk beli/jual.

  4. Membuat panel admin dalam game untuk mengatur harga, status item, reload, tambah, dan hapus item.

  5. Menambahkan konfigurasi, pesan, command, serta penyimpanan perubahan ke config.yml.

Plugin shop sudah dibuat dengan fitur:

  • 9 kategori: misc, ore, block, potion, weapon, tools, gear, decoration, farming.

  • Katalog item survival otomatis ditambahkan berdasarkan material yang tersedia di versi server.

  • GUI utama dan GUI kategori dengan pagination.

  • GUI ramah Bedrock.

  • Pilihan transaksi:

    • Beli/jual 1 item

    • Beli/jual 16 item

    • Beli/jual 64 item

  • Harga beli dan jual.

  • Dukungan Vault economy.

  • Panel admin /shopadmin:

    • Edit harga buy/sell langsung dari GUI

    • Naik/turunkan harga

    • Aktif/nonaktifkan item

    • Tambah item

    • Hapus item

    • Reload konfigurasi

  • Semua perubahan harga/status tersimpan otomatis ke config.yml.

  • XSeries digunakan untuk kompatibilitas material lintas versi Minecraft.

Command utama:

Plain Text
/shop
/shop <kategori>

/shopadmin
/shopadmin reload
/shopadmin add <kategori> <material> <buy> <sell>
/shopadmin remove <material>

Contoh:

Plain Text
/shopadmin add farming APPLE 10 5
/shopadmin remove apple

Plugin membutuhkan:

  • Vault

  • Plugin economy seperti EssentialsX Economy, CMI Economy, atau sejenisnya

  • Paper/Spigot 1.20+

Permission admin:

Plain Text
kodari.shop.admin
Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
15 1,244
src/main/java/com/kodari/shop/KodariShop.java
package com.kodari.shop;

import com.kodari.shop.command.ShopAdminCommand;
import com.kodari.shop.command.ShopCommand;
import com.kodari.shop.economy.EconomyHook;
import com.kodari.shop.listener.ShopListener;
import com.kodari.shop.manager.ShopManager;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public final class KodariShop extends JavaPlugin {
    private ShopManager shopManager;

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

        EconomyHook economyHook = new EconomyHook(this);
        this.shopManager = new ShopManager(this, economyHook);

        ShopListener listener = new ShopListener(shopManager);
        Bukkit.getPluginManager().registerEvents(listener, this);

        ShopCommand shopCommand = new ShopCommand(shopManager);
        getCommand("shop").setExecutor(shopCommand);
        getCommand("shop").setTabCompleter(shopCommand);

        ShopAdminCommand adminCommand = new ShopAdminCommand(shopManager);
        getCommand("shopadmin").setExecutor(adminCommand);
        getCommand("shopadmin").setTabCompleter(adminCommand);
    }

    public ShopManager getShopManager() {
        return shopManager;
    }
}