.ofxs

create plugin coinshop What's in the picture with lore and cost and status can custom command give in config.yml and support hex code and placeholder can On the scoreboard coinshop how much and can edit INVENTORY GUI item You can put any item and the existing item command can be directly replaced in config.yml, for example, item spawner and change spawner, give name spawner, for example like this /coinadmin editor and /coinadmin reload and /coinadmin give like 1k Free, depending on how much the admin gives player command /coin show how much him have coin and /coinshop with INVENTORY GUI shop – coinshop and The red glass below left is the same as in the picture. and add plugin need to run this plugin

1 image attached
Kodari AI
KodariAug 13 at 7:26 am 2
CoinShopGUI
A Minecraft Spigot plugin that provides a GUI-based coin shop system with configurable items, prices, lore, and custom commands. Admins can edit shop items via /coinadmin editor, reload config with /coinadmin reload, and give free coins with /coinadmin give. Players view balance with /coin show and browse the shop via /coinshop, featuring a decorative red glass barrier at the bottom. Supports hex color codes and PlaceholderAPI integration for displaying coin balances on scoreboards. Includes config.yml for item customization with spawner replacement support.
  1. Core currency: create persistent coin storage with admin grant/set/take commands and balance display.

  2. Shop GUI: add a configurable 54-slot coin shop with item lore, costs, status placeholders, commands, one-time purchases, and red-glass footer.

  3. Administration: add /coinadmin editor, reload, and item material/cost/slot editing commands.

  4. Server integration: add configurable hex colors, scoreboard balance display, plugin metadata, and Gradle build files.

Created the CoinShop plugin with:

  • /coin and /coin show balance display.

  • /coinshop configurable inventory shop.

  • /coinadmin reload

  • /coinadmin editor

  • /coinadmin give <player> <amount>

  • /coinadmin set <player> <amount>

  • /coinadmin take <player> <amount>

  • /coinadmin item <id> material|cost|slot <value>

  • Persistent coins and one-time purchase tracking.

  • Configurable shop items, lore, prices, commands, slots, status text, and filler items.

  • Red glass footer slot configured by default.

  • Hex colors using &#RRGGBB.

  • Scoreboard coin balance display.

  • Amount formats such as 1k, 1.5m, and 1b.

  • Optional PlaceholderAPI soft dependency.

  • XSeries cross-version material support.

  • Gradle build files and plugin metadata.

Default shop item commands can be replaced directly in config.yml, for example:

YAML
commands:
  - "give %player% SPAWNER 1"

The plugin requires a Bukkit/Spigot/Paper server. XSeries is configured as the implementation dependency, while PlaceholderAPI is optional.

.ofxs

update plugin 1.1.1 and /coinadmin editor with INVENTORY GUI edit menu editing coinshop and add message.yml sound.yml and INVENTORY GUI /coinshop &8sʜᴏᴘ – ᴄᴏɪɴsʜᴏᴘ and color Status owned color #00fc88 status available color #00fc88 and not enough status #FF0000 and remove settings: currency-name: "Coins" scoreboard: enabled: true title: "&#d946ef&lCOINSHOP" lines: - "&7&m----------------" - "&fCoins: &e%coins%" - "&7&m----------------" and add file placeholder.txt What is the content of this plugin placeholder and luckperms can give permission to this plugin too and the placeholder must have a scoreboard where the placeholder is placed

Kodari AI
KodariAug 13 at 7:38 am 3
  1. Update plugin metadata and configuration structure to v1.1.1, including messages, sounds, placeholder documentation, status colors, and removal of the old currency/scoreboard settings.

  2. Add an inventory-based /coinadmin editor for editing the CoinShop GUI.

  3. Add LuckPerms-compatible permission nodes and document the scoreboard placeholder.

  4. Verify the updated shop title, status rendering, and configuration wiring.

  1. Metadata/config task: moving messages and sounds into dedicated files, replacing the removed scoreboard config with built-in scoreboard defaults that use the documented coin placeholder, and adding the placeholder reference file.

  1. GUI editor task: replace the current preview-only /coinadmin editor behavior with a real inventory editor that opens a menu, lets an admin select a shop item, and provides edit controls for its material, cost, slot, and save/reload flow.

  1. Permissions/placeholders task: add LuckPerms-friendly command nodes, register a real PlaceholderAPI expansion when PlaceholderAPI is installed, and make %coinshop_coins%/related placeholders available in shop text and the sidebar.

  1. Final wiring task: apply the requested shop title/status colors, make sound.yml active for opening, successful purchases, and failed purchases, and keep item material/command replacement configurable in config.yml.

Updated CoinShop to v1.1.1.

Added

  • /coinadmin editor inventory GUI editor.

    • Select shop items.

    • Increase/decrease cost by 100.

    • Move item slots.

    • Hold an item on the cursor to replace the shop material and amount.

    • Save and return buttons.

  • Configurable message.yml.

  • Configurable sound.yml.

  • placeholder.txt documentation.

  • PlaceholderAPI expansion:

    • %coinshop_coins%

    • %coinshop_balance%

    • %coinshop_coins_raw%

    • %coinshop_player%

  • Built-in scoreboard now displays %coinshop_coins%.

  • LuckPerms-compatible permissions:

    • coinshop.balance

    • coinshop.shop

    • coinshop.admin

  • Sound effects for:

    • Opening the shop.

    • Successful purchases.

    • Failed purchases.

  • Hex status colors:

    • Owned: #00fc88

    • Available: #00fc88

    • Not enough coins: #FF0000

  • Updated GUI title:

YAML
title: "&8sʜᴏᴘ &8– &8ᴄᴏɪɴsʜᴏᴘ"

Removed

The following settings were removed from config.yml:

  • settings.currency-name

  • settings.scoreboard.enabled

  • settings.scoreboard.title

  • settings.scoreboard.lines

Example custom spawner item

YAML
spawner:
  slot: 24
  material: SPAWNER
  amount: 1
  name: "&dSpawner"
  lore:
    - "&7A configurable spawner reward."
    - ""
    - "&fCost: &e%cost% Coins"
    - "&fYour coins: &e%coins%"
    - "&fStatus: %status%"
  cost: 1000
  one-time: false
  commands:
    - "give %player% SPAWNER 1"

LuckPerms examples

Plain Text
/lp group default permission set coinshop.shop true
/lp group default permission set coinshop.balance true
/lp group admin permission set coinshop.admin true

The scoreboard uses the coin placeholder on its Coins line:

Plain Text
%coinshop_coins%
.ofxs

When you install this plugin, the image of Nemesis should appear, so CoinShop is RED and the author's name is cherryimup. Including plugin.yml, the com name is cherryimup and the author is also

1 image attached
Kodari AI
KodariAug 13 at 7:42 am 1

Updated the plugin branding:

  • Moved Java package from com.kodari.coinshop to com.cherryimup.coinshop.

  • Updated plugin.yml:

    • Main: com.cherryimup.coinshop.CoinShopPlugin

    • Author: cherryimup

  • Updated Gradle group to com.cherryimup.

  • Added a red ASCII CoinShop startup banner.

  • Startup banner displays:

    • CoinShop name

    • Version 1.1.1

    • Author cherryimup

  • Updated PlaceholderAPI expansion author to cherryimup.

The banner appears automatically when the plugin enables during server startup.

.ofxs

/coinadmin editor itu bisa taro item apapun di Minecraft dan jika item tersebut di taro dimanapun di INVENTORY GUI nya akan ada di item nya di coinshop dan command give item nya akan ada juga dan INVENTORY GUI coinshop nya harus kayak di plugin yml ini harus sama

📎 1 file 4,053 chars
📄
spawner.yml
yml 189 lines
▶
title: "񬠜ѕʜᴏᴘ - ѕᴘᴀᴡɴᴇʀ"
rows: 3


money-cost-placeholder: "%shards_value%"
money-withdraw-command: "shards remove %player% %price%"

back-button:
  slot: 18
  material: RED_STAINED_GLASS_PANE
  displayname: "&#f00f0cʙᴀᴄᴋ"
  lore:
    - "&fClick to go back"

filler:
  enabled: false
  material: "GRAY_STAINED_GLASS_PANE"
  displayname: "&7 "
  rows: 3
  lore:
    - "&7"

page-arrows:
  next-page:
    material: ARROW
    slot: 23
    displayName: "�df37dNext Page"
    lore:
      - "&fClick to go to next page"
  previous-page:
    material: ARROW
    slot: 21
    displayName: "�df37dPrevious Page"
    lore:
      - "&fClick to go to previous page"

items:
  spawner-pig:
    price: 250
    slot: 9
    giveitem: false
    givelore: false
    hide_attributes: false
    command: 'give %player% pig_spawner 1'
    material: SPAWNER
    displayname: "&dSpanwer"
    amount: 1
    lore:
      - "&ePig"
      - ""
      - '&fBuy Price: �bf52b$%price%'
  spawner-cow:
    price: 350
    slot: 10
    giveitem: false
    givelore: false
    hide_attributes: false
    command: 'give %player% cow_spawner 1'
    material: SPAWNER
    displayname: "&dSpanwer"
    amount: 1
    lore:
      - "&eCow"
      - ""
      - '&fBuy Price: �bf52b$%price%'
  spawner-zombie:
    price: 400
    slot: 11
    giveitem: false
    givelore: false
    hide_attributes: false
    command: 'give %player% zombie_spawner 1'
    material: SPAWNER
    displayname: "&dSpanwer"
    amount: 1
    lore:
      - "&eZombie"
      - ""
      - '&fBuy Price: �bf52b$%price%'
  spawner-spider:
    price: 750
    slot: 12
    giveitem: false
    givelore: false
    hide_attributes: false
    command: 'give %player% spider_spawner 1'
    material: SPAWNER
    displayname: "&dSpanwer"
    amount: 1
    lore:
      - "&eSpider"
      - ""
      - '&fBuy Price: �bf52b$%price%'
  spawner-skeleton:
    price: 500
    slot: 13
    giveitem: false
    givelore: false
    hide_attributes: false
    command: 'give %player% skeleton_spawner 1'
    material: SPAWNER
    displayname: "&dSpawner"
    amount: 1
    lore:
      - "&eSkeleton"
      - ""
      - '&fBuy Price: �bf52b$%price%'
  spawner-creeper:
    price: 625
    slot: 14
    giveitem: false
    givelore: false
    hide_attributes: false
    command: 'give %player% creeper_spawner 1'
    material: SPAWNER
    displayname: "&dSpawner"
    amount: 1
    lore:
      - "&eCreeper"
      - ""
      - '&fBuy Price: �bf52b$%price%'
  spawner-zombified-piglin:
    price: 750
    slot: 15
    giveitem: false
    givelore: false
    hide_attributes: false
    command: 'give %player% zombified_piglin_spawner 1'
    material: SPAWNER
    displayname: "&dSpanwer"
    amount: 1
    lore:
      - "&eZombified Piglin"
      - ""
      - '&fBuy Price: �bf52b$%price%'
  spawner-blaze:
    price: 1000
    slot: 16
    giveitem: false
    givelore: false
    hide_attributes: false
    command: 'give %player% blaze_spawner 1'
    material: SPAWNER
    displayname: "&dSpanwer"
    amount: 1
    lore:
      - "&eBlaze"
      - ""
      - '&fBuy Price: �bf52b$%price%'
  spawner-iron-golem:
    price: 1500
    slot: 17
    giveitem: false
    givelore: false
    hide_attributes: false
    command: 'give %player% iron_golem_spawner 1'
    material: SPAWNER
    displayname: "&dSpanwer"
    amount: 1
    lore:
      - "&eIron Golem"
      - ""
      - '&fBuy Price: �bf52b$%price%'

#page2:
#
#  apple:
#    price: 50
#    slot: 9
#    giveitem: true
#    givelore: false
#    command: ''
#    material: APPLE
#    displayname: ''
#    amount: 1
#    lore:
#      - '&fBuy Price: �bf52b$%price%'
#
#  carrot:
#    price: 50
#    slot: 10
#    giveitem: true
#    givelore: false
#    command: ''
#    material: CARROT
#    displayname: ''
#    amount: 1
#    lore:
#      - '&fBuy Price: �bf52b$%price%'
Kodari AI
KodariAug 13 at 7:58 am 3
  1. Ubah editor agar admin dapat menaruh item apa pun pada slot GUI, lalu item tersebut tersimpan sebagai produk CoinShop.

  2. Tambahkan penyimpanan data item lengkap serta command hadiah otomatis/opsional untuk item yang diedit.

  3. Samakan konfigurasi dan tampilan /coinshop dengan format spawner.yml: rows, back button, filler, pagination, harga, lore, dan placeholder.

  4. Pertahankan kompatibilitas konfigurasi lama serta validasi slot/item saat reload.

Perubahan diterapkan:

  • /coinadmin editor sekarang menjadi inventory editor kosong/berisi item shop.

  • Admin dapat menaruh item apa pun dari inventory Minecraft ke slot mana pun.

  • Item otomatis disimpan saat inventory editor ditutup.

  • Item menyimpan:

    • Material

    • Amount

    • Display name

    • Lore

    • Enchantment/NBT/meta item

    • Slot GUI

    • Harga default 0

    • giveitem: true

    • Command give otomatis

  • Item custom diberikan langsung sebagai ItemStack, sehingga nama, lore, enchantment, dan metadata tetap terjaga.

  • Command give tetap dibuat di config, contohnya:

YAML
command: "give %player% DIAMOND 1"
  • Format config.yml sudah disesuaikan dengan struktur spawner.yml:

    • title

    • rows

    • money-cost-placeholder

    • money-withdraw-command

    • back-button

    • filler

    • page-arrows

    • items

  • GUI /coinshop menggunakan:

YAML
title: "&8sʜᴏᴘ &8– &8ᴄᴏɪɴsʜᴏᴘ"
  • Tombol kaca merah berada di slot 18 dan tidak akan menimpa item shop jika admin menaruh item di slot tersebut.

  • Status warna:

    • Owned: #00fc88

    • Available: #00fc88

    • Not enough: #FF0000

  • Placeholder harga %price% dan placeholder coin %coins% tetap didukung.

  • Item lama tetap dapat diedit melalui:

Plain Text
/coinadmin item <id> material <material>
/coinadmin item <id> amount <jumlah>
/coinadmin item <id> cost <harga>
/coinadmin item <id> slot <slot>
  • Ditambahkan pesan:

YAML
editor-saved: "&aCoinShop items saved. Items placed in the editor are now available in the shop."
.ofxs

item nya ada di Spawner.yml itu dihapus aja itu hanya buat INVENTORY GUI plugin ini dan hapus scoreboard nya dan kaca merah itu namenya #FF0000ʙᴀᴄᴋ dan tambah edit lore dan warna kayak cost yang ada di /coinadmin editor dan diclick ada kayak apa tu namanya cost atau apalah tambah file editor.yml

Kodari AI
KodariAug 13 at 8:05 am 3
  1. Hapus scoreboard dan nonaktifkan pemuatan item dari spawner.yml.

  2. Pindahkan pengaturan editor ke editor.yml, termasuk edit lore, warna, dan tombol harga/cost.

  3. Ubah nama tombol kembali menjadi #FF0000ʙᴀᴄᴋ dan selaraskan GUI shop/editor.

Perubahan sudah diterapkan:

  • Item default dari GUI dihapus dari config.yml.

  • Item shop sekarang disimpan di editor.yml.

  • editor.yml dibuat dengan:

    • Tombol Cost

    • Tombol Edit Lore

    • Tombol Edit Color

    • Tombol &#FF0000ʙᴀᴄᴋ

  • editor.yml dimulai kosong dengan:

YAML
items: {}
  • /coinadmin editor:

    • Taruh item apa pun ke slot kosong.

    • Tutup inventory untuk menyimpan item.

    • Klik item yang sudah ada untuk membuka editor item.

    • Klik Cost, lalu masukkan harga melalui chat.

    • Klik Edit Lore, lalu masukkan lore dengan pemisah |.

    • Klik Edit Color, lalu masukkan warna seperti #FF0000, &#FF0000, atau &c.

  • Command give otomatis tetap dibuat di editor.yml.

  • Scoreboard CoinShop dihapus seluruhnya.

  • Tombol back GUI shop dan editor menggunakan nama merah &#FF0000ʙᴀᴄᴋ.

.ofxs

command editor tetap ada tapi di editor.yml hapus items Spawner semua Spawner dan items juga dihapus dan shard multi dan diamond tadi itu tetap ada di config.yml di config.yml yang kaca merah sama ya textnya dan warnanya

Kodari AI
KodariAug 13 at 8:08 am 1
  1. Bersihkan editor.yml dari seluruh item default/spawner tanpa menghapus command /coinadmin editor.

  2. Pertahankan item shard, multi, dan diamond di config.yml.

  3. Samakan tombol kaca merah di config.yml dengan teks dan warna #FF0000ʙᴀᴄᴋ.

  • editor.yml sekarang hanya menyimpan pengaturan GUI editor; seluruh items dan item spawner dihapus.

  • Command /coinadmin editor tetap aktif.

  • Data item editor sekarang disimpan ke config.yml, bukan editor.yml.

  • Item shard, multi, dan diamond tetap berada di config.yml.

  • Jika server masih memiliki items lama di editor.yml, plugin akan membersihkannya otomatis saat reload/start.

  • Tombol kaca merah di config.yml menggunakan:

    • Material: RED_STAINED_GLASS_PANE

    • Nama: &#FF0000ʙᴀᴄᴋ

  • Editor Cost, Lore, dan Color tetap menggunakan pengaturan dari editor.yml.

.ofxs

coinadmin editor gabisa taro semua item kayak gabisa ubah biar bisa letak dan taro item nya dan placeholder price nya juga fix

Kodari AI
KodariAug 13 at 8:28 am 1
  • Izinkan drag, shift-click, pickup, swap, dan penempatan item di /coinadmin editor tanpa membatasi material/NBT.

  • Pertahankan klik kiri item untuk membuka menu Cost, Edit Lore, dan Edit Color; klik kanan/drag dapat digunakan untuk memindahkan atau mengambil item.

  • Perbaiki placeholder saldo/harga pada lore dan command produk agar %price%, %cost%, serta placeholder saldo konfigurasi selalu diganti.

  • /coinadmin editor sekarang bisa menaruh item apa pun, termasuk item custom dengan NBT, enchantment, lore, dan metadata.

  • Drag item, shift-click, pickup, swap, dan pemindahan item di inventory editor sudah diizinkan.

  • Klik kiri item tetap membuka menu editor Cost, Edit Lore, dan Edit Color.

  • Klik kanan atau drag bisa digunakan untuk memindahkan/mengambil item dari slot editor.

  • Placeholder diperbaiki:

    • %price%

    • %cost%

    • %coins%

    • %coinshop_coins%

    • %coinshop_balance%

    • placeholder yang diatur pada money-cost-placeholder

  • Placeholder harga juga sekarang diproses pada command item sebelum command dijalankan.

.ofxs

nama item ditaro di coinadmin editor bukan item-17 tapi nama itemnya contoh elytra jangan item-berapalah itu dan update plugin ini 1.2.2 di coinadmin editor tambah next page and previous dan tambah confirm purchase confirm and cancel set 1 set 20 set 64 dan with INVENTORY GUI nya juga confirm purchase nya hex code name cancel nya #FF0000ᴄᴀɴᴄᴇʟ yang confirm #3AFF00ᴄᴏɴꜰɪʀᴍ INVENTORY GUI nya kayak di gambar tapi jangan end stone juga sampe

1 image attached
Kodari AI
KodariAug 15 at 5:34 am 5
  1. Perbarui nama item di editor agar memakai nama material/item (contoh ELYTRA), bukan item-17, serta tambahkan pagination.

  2. Tambahkan GUI konfirmasi pembelian dengan pilihan jumlah 1, 20, 64, tombol confirm/cancel, dan pembelian melalui inventory GUI.

  3. Naikkan versi plugin ke 1.2.2 dan sesuaikan konfigurasi/placeholder yang diperlukan.

  • Plugin diperbarui ke versi 1.2.2 di build.gradle dan plugin.yml.

  • /coinadmin editor sekarang:

    • Menampilkan nama item berdasarkan material, misalnya ELYTRA, bukan item-17.

    • ID item baru juga dibuat berdasarkan material.

    • Memiliki tombol Next Page dan Previous Page.

    • Item pada halaman berikutnya tetap tersimpan ke config.yml.

  • GUI shop sekarang mendukung pagination dan GUI konfirmasi pembelian:

    • Set to 1

    • Set to 20

    • Set to 64

    • &#3AFF00ᴄᴏɴꜰɪʀᴍ

    • &#FF0000ᴄᴀɴᴄᴇʟ

  • Harga otomatis dikalikan sesuai jumlah pembelian, placeholder %price%, %cost%, %total%, %quantity%, dan %amount% sudah diproses.

  • Pembelian item akan memberikan jumlah sesuai pilihan, termasuk pemecahan stack lebih dari 64.

  • Tidak ada penggunaan end stone pada GUI konfirmasi.

.ofxs

INVENTORY GUI buying item ikuti confirm-menu: rows: 3 use-small-font-title: true title: '&#444444buying {item-name}' confirm-purchase: material: LIME_STAINED_GLASS_PANE slot: 23 displayname: '&#0bf52bᴄᴏɴꜰɪʀᴍ' lore: - "&fClick to buy" action: confirm decline-purchase: material: RED_STAINED_GLASS_PANE slot: 21 lore: - "&fClick to cancel" displayname: '&#f5240bʙᴀᴄᴋ' action: back item-purchase: material: '%clicked-item%' amount: '%clicked-amount%' slot: 13 lore: - '&fBuy Price: &#0bf52b$%price%' add1: material: LIME_STAINED_GLASS_PANE slot: 15 amount: 1 displayname: '&#0bf52bAdd 1' action: add1 add10: material: LIME_STAINED_GLASS_PANE slot: 16 amount: 10 displayname: '&#0bf52bAdd 10' action: add10 add64: material: LIME_STAINED_GLASS_PANE slot: 17 amount: 64 displayname: '&#0bf52bSet to 64' action: add64 remove1: material: RED_STAINED_GLASS_PANE slot: 11 amount: 1 displayname: '&#f5240bRemove 1' action: remove1 remove10: material: RED_STAINED_GLASS_PANE slot: 10 amount: 10 displayname: '&#f5240bRemove 10' action: remove10 remove64: material: RED_STAINED_GLASS_PANE slot: 9 amount: 64 displayname: '&#f5240bSet to 1' action: remove64

Kodari AI
KodariAug 15 at 5:57 am 2
  1. Sesuaikan konfigurasi confirm-menu dengan slot, material, nama hex, lore, dan action yang diberikan.

  2. Ubah logic GUI pembelian agar membaca menu tersebut, mendukung add/remove 1, 10, 64, dan menghitung total price.

  3. Pastikan placeholder %clicked-item%, %clicked-amount%, dan %price% bekerja tanpa mengganggu editor maupun shop utama.

Confirm-menu INVENTORY GUI sudah disesuaikan:

  • Menggunakan section confirm-menu.

  • Title memakai:

    • &#444444buying {item-name}

    • use-small-font-title: true

  • Tombol confirm:

    • Slot 23

    • &#0bf52bᴄᴏɴꜰɪʀᴍ

  • Tombol back:

    • Slot 21

    • &#f5240bʙᴀᴄᴋ

  • Preview item di slot 13.

  • Placeholder yang berfungsi:

    • %clicked-item%

    • %clicked-amount%

    • %price%

    • %quantity%

    • %total%

  • Pengaturan jumlah:

    • Add 1

    • Add 10

    • Set 64

    • Remove 1

    • Remove 10

    • Set kembali 1

  • Action confirm, back, add1, add10, add64, remove1, remove10, dan remove64 sudah diproses oleh GUI.

.ofxs

tambah command /coinadmin setstatus available sama ga available nama item di coinshopnya apa dan sudah setstatus available itu semua item di coinshop ada semua sedangkan yang tidak available itu tidak bisa beli item

Kodari AI
KodariAug 15 at 6:06 am 2
  1. Tambahkan /coinadmin setstatus <item> <available|not-available> dengan nama item yang sama seperti di coinshop.

  2. Tampilkan status semua item di GUI shop dan cegah pembelian item berstatus not-available.

  3. Simpan status per item di konfigurasi agar tetap ada setelah reload.

  • Ditambahkan command:

    Plain Text
    /coinadmin setstatus <nama-item> <available|not-available>
    

    Contoh:

    Plain Text
    /coinadmin setstatus Shard available
    /coinadmin setstatus Diamond not-available
    

    Status not available dengan spasi juga didukung.

  • Nama item menggunakan nama yang tampil di CoinShop, seperti Shard, Multi, atau Diamond, bukan ID config.

  • Semua item default available: true, sehingga tetap muncul dan bisa dibeli.

  • Item berstatus not-available tetap muncul di GUI dengan status merah, tetapi:

    • Tidak bisa membuka menu pembelian.

    • Tidak bisa dibeli walaupun GUI pembelian masih terbuka.

  • Status tersimpan di config.yml pada:

    YAML
    items:
      shard:
        available: true
    
  • Ditambahkan pesan status dan placeholder penggunaan command di message.yml.

.ofxs

Sama item yang sudah dieditor itu hapus kayak gini item-stack: ==: org.bukkit.inventory.ItemStack DataVersion: 4671 id: minecraft:elytra count: 1 components: minecraft:damage: '15' schema_version: 1

Kodari AI
KodariAug 15 at 6:18 am 1
  • Hapus penyimpanan item-stack serialized dari item hasil editor.

  • Bersihkan item-stack lama yang sudah tersimpan di config.yml saat plugin load/reload.

  • Item tetap dibangun dari material, amount, name, dan lore, sehingga format config menjadi ringkas.

item-stack serialized seperti data Elytra tersebut sudah dihapus.

Perubahan:

  • Item hasil editor tidak lagi menyimpan:

    YAML
    item-stack:
      ==: org.bukkit.inventory.ItemStack
      ...
    
  • item-stack lama di config.yml otomatis dihapus saat plugin start/reload.

  • Item sekarang hanya memakai:

    • material

    • amount

    • name

    • lore

    • price/cost

    • pengaturan lainnya

  • Update material atau amount tidak lagi membuat item-stack baru.

.ofxs

Item yang sudah ditaro coinadmin editor itu semua nama item jangan huruf besar harus dari Minecraft nya pas udh place dan pas beli item nya itu jangan munculin yang di foto

1 image attached
Kodari AI
KodariAug 17 at 8:10 am 2
  1. Ubah nama item editor/shop menjadi nama vanilla Minecraft dalam huruf kecil.

  2. Perbaiki preview dan item hasil pembelian agar placeholder seperti %price%, %coins%, dan %status% tidak tampil mentah.

  • Nama item yang baru ditaruh lewat /coinadmin editor sekarang memakai nama material Minecraft huruf kecil, contoh:

    • bedrock

    • elytra

    • diamond_sword

  • Nama lama seperti &fBEDROCK otomatis ditampilkan sebagai bedrock.

  • Item yang dibeli tidak lagi membawa lore toko, sehingga placeholder mentah seperti %price%, %coins%, dan %status% tidak muncul di item hasil pembelian.

  • Lore di GUI CoinShop tetap menampilkan harga, saldo, dan status yang sudah diproses.

  • %clicked-item% pada confirm-menu sekarang menghasilkan ID material lowercase seperti bedrock.

.ofxs

Semua nama item itu harus dari Minecraft Contohnya Bedrock dan pas beli item dari coinshop itu jangan munculin yang digambar tadi dan /coinshop price icon nya itu diganti icon coin

Kodari AI
KodariAug 17 at 8:13 am 2
  1. Samakan nama item dengan nama Minecraft yang rapi, misalnya Bedrock, di editor dan CoinShop.

  2. Hilangkan lore/status toko dari item yang diberikan setelah pembelian.

  3. Ganti icon harga pada /coinshop menjadi icon coin yang sudah dipakai plugin.

  • Nama akan selalu dibuat dari material Minecraft dalam format title case (BEDROCK → Bedrock, DIAMOND_SWORD → Diamond Sword), termasuk item lama yang namanya masih custom.

  • Item reward akan dipastikan tidak membawa lore harga/status saat diberikan.

  • Harga GUI memakai simbol coin ⛃ melalui placeholder %coin-icon%, termasuk menu konfirmasi.

  1. Nama material Minecraft sudah dipaksa menjadi title case, sehingga item lama seperti Shard/Multi ikut menjadi nama materialnya.

  2. Lore reward dibersihkan sebelum item masuk inventory pemain.

  3. Icon harga ⛃ sudah ditambahkan ke harga shop dan confirm-menu; saya juga samakan lore otomatis dari editor agar item baru memakai icon yang sama.- Semua nama item sekarang otomatis mengikuti nama material Minecraft dalam format rapi:

  • BEDROCK → Bedrock

  • DIAMOND_SWORD → Diamond Sword

  • PRISMARINE_SHARD → Prismarine Shard

  • Nama custom lama di config akan diabaikan dan diganti berdasarkan material.

  • Item yang dibeli tidak membawa lore harga, status, atau lore toko.

  • Icon harga /coinshop diganti menjadi ⛃, termasuk:

    • GUI CoinShop

    • Confirm purchase menu

    • Item baru dari CoinAdmin Editor

  • Konfigurasi mendukung:

    YAML
    coin-icon: "⛃"
    
Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
settings.gradle
Code
20 1,874
src/main/java/com/cherryimup/coinshop/CoinShopPlugin.java
package com.cherryimup.coinshop;

import me.clip.placeholderapi.PlaceholderAPI;
import com.cryptomorin.xseries.XSound;
import org.bukkit.Bukkit;
import org.bukkit.command.PluginCommand;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.plugin.java.JavaPlugin;

import java.io.File;
import java.io.IOException;
import java.util.Map;

public class CoinShopPlugin extends JavaPlugin {
    private CoinManager coinManager;
    private ShopManager shopManager;
    private FileConfiguration messageConfig;
    private FileConfiguration soundConfig;
    private FileConfiguration editorConfig;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        loadExternalConfigs();
        printBanner();
        coinManager = new CoinManager(this);
        shopManager = new ShopManager(this);
        Bukkit.getPluginManager().registerEvents(new CoinShopListener(this), this);

        CoinCommand coinCommand = new CoinCommand(this);
        PluginCommand coin = getCommand("coin");
        if (coin != null) { coin.setExecutor(coinCommand); coin.setTabCompleter(coinCommand); }
        PluginCommand shop = getCommand("coinshop");
        if (shop != null) shop.setExecutor(new ShopCommand(this));
        CoinAdminCommand adminCommand = new CoinAdminCommand(this);
        PluginCommand admin = getCommand("coinadmin");
        if (admin != null) { admin.setExecutor(adminCommand); admin.setTabCompleter(adminCommand); }
        if (Bukkit.getPluginManager().getPlugin("PlaceholderAPI") != null) {
            new CoinShopExpansion(this).register();
        }
    }

    public void reloadPlugin() {
        reloadConfig();
        loadExternalConfigs();
        coinManager.reload();
        shopManager.load();
    }

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

    public String message(String key) { return message(key, new java.util.LinkedHashMap<>()); }

    public String message(String key, Map<String, String> values) {
        String prefix = messageConfig.getString("prefix", "");
        String text = messageConfig.getString(key, key);
        text = text.replace("%prefix%", prefix);
        for (Map.Entry<String, String> entry : values.entrySet()) text = text.replace("%" + entry.getKey() + "%", entry.getValue());
        return TextUtil.color(prefix + text);
    }

    public String placeholders(org.bukkit.entity.Player player, String text) {
        if (Bukkit.getPluginManager().getPlugin("PlaceholderAPI") == null) return text;
        return PlaceholderAPI.setPlaceholders(player, text);
    }

    public void playSound(org.bukkit.entity.Player player, String key) {
        String path = key + ".";
        if (!soundConfig.getBoolean(path + "enabled", true)) return;
        String name = soundConfig.getString(path + "name");
        if (name == null || name.isEmpty()) return;
        float volume = (float) soundConfig.getDouble(path + "volume", 1.0D);
        float pitch = (float) soundConfig.getDouble(path + "pitch", 1.0D);
        XSound.matchXSound(name).ifPresent(sound -> sound.play(player, volume, pitch));
    }

    private void loadExternalConfigs() {
        File messageFile = new File(getDataFolder(), "message.yml");
        File soundFile = new File(getDataFolder(), "sound.yml");
        File editorFile = new File(getDataFolder(), "editor.yml");
        if (!messageFile.exists()) saveResource("message.yml", false);
        if (!soundFile.exists()) saveResource("sound.yml", false);
        if (!editorFile.exists()) saveResource("editor.yml", false);
        messageConfig = YamlConfiguration.loadConfiguration(messageFile);
        soundConfig = YamlConfiguration.loadConfiguration(soundFile);
        editorConfig = YamlConfiguration.loadConfiguration(editorFile);
        if (editorConfig.contains("items")) {
            editorConfig.set("items", null);
            try {
                editorConfig.save(editorFile);
            } catch (IOException exception) {
                getLogger().warning("Could not clean items from editor.yml: " + exception.getMessage());
            }
        }
    }

    private void printBanner() {
        String red = "\u001B[31m";
        String reset = "\u001B[0m";
        getLogger().info(red + "   CCCC   OOO   III  N   N  SSSS  H H   OOO   PPPP  " + reset);
        getLogger().info(red + "  C      O   O   I   NN  N  S     HHH  O   O  P   P " + reset);
        getLogger().info(red + "  C      O   O   I   N N N  SSSS  H H  O   O  PPPP  " + reset);
        getLogger().info(red + "  C      O   O   I   N  NN     S   H H  O   O  P     " + reset);
        getLogger().info(red + "   CCCC   OOO   III  N   N  SSSS  H H   OOO   P     " + reset);
        getLogger().info(red + "CoinShop" + reset + " v" + getDescription().getVersion() + " by cherryimup");
    }

    public CoinManager getCoinManager() { return coinManager; }
    public ShopManager getShopManager() { return shopManager; }
    public FileConfiguration getSoundConfig() { return soundConfig; }
    public FileConfiguration getEditorConfig() { return editorConfig; }
}