A

These are the coinshop visual the name might be different sorry for that so keep everything same and 1 more things in the bottom of config list all the placeholddr name working and description and also permission name work description

📎 7 files 37,675 chars
📄
economycore-plugin-prompt.md
md 298 lines
▶
# EconomyCore — Build Prompt

Build a single Paper/Spigot Java plugin called **EconomyCore** from scratch. It manages two independent currencies (XShards, XCoins), a shard shop, a coin shop, passive shard income, and kill rewards — all driven by editable YAML, with no hardcoded text, prices, commands, GUI layouts, command names, or permission nodes anywhere in the code. Everything below (item lists, prices, commands, permissions, and message text) is the exact default configuration the plugin should ship with out of the box — treat it as data to load from config files, not as fixed logic.

## 0. Everything is renameable: commands and permissions

This is a hard requirement across the whole plugin, because the reward plugins behind these shops get swapped over time: **every command this plugin registers, and every permission node it checks or grants anywhere, must be a value read from `config.yml` at startup** — never a literal string baked into code. This applies to:

- Every top-level command: `/xshards`, `/xcoins`, `/shard`/`/shards`, `/coin`/`/coins`, `/shardshop`, `/coinshop`, and the back-button shop variant — the command label and its aliases are config values, so any of them can be renamed without touching code.
- Every permission node the plugin checks or grants anywhere: admin-command permissions, passive-income permissions, every shop item's "grants this permission" and "requires this other permission first" nodes, and any permission-gated visibility in the GUIs. None of these are hardcoded strings in Java — they're all keys read from config, with the values listed in this document as their shipped defaults.
- Every shop item's give-command (crate keys, spawners, tools) is likewise a config value with `%player%` substitution, never hardcoded per-item logic, since the plugins that fulfill those commands (crates plugin, spawner plugin, tools plugin) get replaced independently of this plugin.
- Register commands dynamically from config at `onEnable` (via Bukkit's command map) rather than only declaring static commands in `plugin.yml`, so a renamed command actually takes effect from a config edit.

## 1. Scope & non-goals

- Two currencies: **XShards** and **XCoins**. Fully independent — separate storage, separate commands, separate placeholders.
- **No player-to-player pay/transfer for either currency.** Balances only change via: admin commands, permission-based passive income, kill rewards (shards only), and shop purchases (deduction only). Do not implement `/pay`.
- Build a lightweight, self-contained menu engine — do not depend on any other menu plugin. It needs the same *capabilities* as a full-featured menu plugin (per-item material/name/lore/slot/commands/permission requirements/tier requirements) but with a **simpler, flatter YAML schema** than typical DeluxeMenus-style configs, since these files will be hand-edited often.

## 2. Currencies

### 2.1 XShards
- Integer balance per player, keyed by UUID.
- Short display form uses K / M / B / T suffixes at 1 decimal place (e.g. `1.5K`, `2.3M`, `4T`), matching standard shorthand-number rounding.

### 2.2 XCoins
- Identical structure/behavior to XShards but a fully separate balance store owned entirely by this plugin (no dependency on any other economy/points plugin).

### 2.3 Admin commands
```
/xshards   
/xcoins    
```
- Both admin-only; permission per currency — default node names `economycore.xshards.admin` / `economycore.xcoins.admin` (renameable per Section 0).
- `amount` required for give/take/set (positive for give/take, non-negative for set); `reset` takes no amount and zeroes the balance.
- `take` floors at 0, never goes negative.
- Tab-complete online + offline player names.

### 2.4 Balance-check commands
```
/shard, /shards   -> own or another player's XShards balance
/coin, /coins     -> own or another player's XCoins balance
```
- No-arg: your own balance. With a player-name arg: look up that offline player.
- Output both in chat and actionbar simultaneously, plus a pickup-sound on success and a villager-no sound + error message if the named player has never joined.
- Tab-complete all player names.
- Default message text and colors (all configurable per Section 3):
  - Own shards: chat + actionbar `&7Your shards: <#A303F9>%amount%`, sound `entity.experience_orb.pickup` volume `0.5`.
  - Other player's shards: chat + actionbar `<#10a5eb>%target%'s &7shards: <#A303F9>%amount%`, same sound.
  - Own coins: chat + actionbar `&7Your coins: <#ffeb14>%amount%`, sound `entity.experience_orb.pickup` volume `0.5`.
  - Other player's coins: chat + actionbar `<#10a5eb>%target%'s &7coins: <#ffeb14>%amount%`, same sound.
  - Player not found: chat + actionbar `&cThat User does not exist!`, sound `entity.villager.no` volume `0.5`.

### 2.5 Placeholders (PlaceholderAPI)
```
%economycore_xshards_amount%   %economycore_xshards_short%
%economycore_xcoins_amount%    %economycore_xcoins_short%
```
Support an offline-player context (falls back to the viewing player if no target given), so external plugins (TAB, holograms) can keep displaying balances.

## 3. Config-driven message system

Every player-facing event in the plugin (purchase success, insufficient funds, already-own, must-own-previous-tier, passive-income tick, kill reward, balance lookups) uses **one shared message block schema**, independently toggleable per channel:

```yaml
some-event:
  chat:
    enabled: true
    text: "&cTeleport cancelled because you moved!"
  actionbar:
    enabled: false
    text: ""
  sound:
    enabled: false
    sound: "ENTITY_VILLAGER_NO"
    volume: 1.0
    pitch: 1.0
```
- Each of chat/actionbar/sound is independently on/off — none require the others.
- Support hex colors (`&#RRGGBB`) and `&` legacy codes in every text field.
- Route every feature (shop, passive income, kill rewards, balance commands) through one shared `MessageService` rather than each feature formatting/sending its own text.

### 3.1 Default message text to ship (all editable, listed here so nothing is lost by building from scratch)

**Shop browsing / navigation**
- Item click / menu-open sound: `UI_BUTTON_CLICK`, volume `1.0`, pitch `1.0`.
- Cancel button: no chat/actionbar text, just the click sound, then return to the menu the player came from.

**Purchase success** (generic template used by every shop item unless a per-item override is set)
- Shard shop: chat + actionbar `&fYou bought <#00a4fc>1 %item_label% &ffor <#A303F9>%display_price% Shards`, sound `ENTITY_EXPERIENCE_ORB_PICKUP` volume `0.5`.
- Coin shop: chat `&7You bought %item_label%&7!`, sound `ENTITY_EXPERIENCE_ORB_PICKUP` volume `1.0`. (The original coin-shop items each had slightly flavored wording — e.g. "You bought a **Common Key**!", "You bought **+1 Home Slot**", "You bought **Red** chat color" — keep those exact per-item strings available as optional overrides on top of the generic template.)

**Insufficient balance**
- Shard shop: chat + actionbar `&cYou don't have enough shards.`, sound `ENTITY_VILLAGER_NO` volume `0.5`.
- Coin shop: chat `&cYou don't have enough coins to purchase this item!`, actionbar (via title actionbar) `You don't have enough coins` in red, sound `ENTITY_VILLAGER_NO` volume `1.0`.

**Already own this item** (permission-gated items only): chat `&cYou already own that item!`, actionbar `You already own that item!` in red, sound `ENTITY_VILLAGER_NO` volume `1.0`.

**Must own the previous tier first** (tiered items only): chat `&cYou must own the previous tier first!`, actionbar `You must own the previous tier first!` in red, sound `ENTITY_VILLAGER_NO` volume `1.0`.

**Coin-shop webstore-link item click**: closes the menu and sends this chat block, sound `ENTITY_EXPERIENCE_ORB_PICKUP` volume `0.5`:
```
Visit the webstore to top up on coins!
➥ https://discord.gg/vGdVQXp3xu
```
(blank lines above/below each line, exact spacing/discord link kept as the shipped default — obviously editable).

**Kill reward notification** (to the killer): chat + actionbar `<##A303F8>+★10 <##A2A9B5>for killing %victim%` (no sound by default).

## 4. Passive shard income (two independent systems)

Both systems only ever apply to **XShards**. Each has its own enable flag, interval, give-command, and message block (Section 3) — they never share config or messages, since one must stay silent and the other can chat-announce.

### 4.1 Per-world "shard world" ticker
- Config: list of world names it's active in (default `["world"]`), interval in seconds (default `60`), amount, and the give-command (default `xshards give %player% 1`).
- Every player standing in a configured world sees a live countdown actionbar the whole time via a custom `%time%` placeholder counting down from the interval to 1, then fires the give-command and resets. Default actionbar text: `&7Next shard In: &#A303F9%time%`.
- This is the **silent** giver: chat defaults to `enabled: false` on award; only actionbar/sound announce by default.

### 4.2 Permission-based passive income
- Any player holding a configured permission (default `economycore.shards.passive`) receives shards every interval **regardless of what world they're in**, except:
- **AFK-world exception:** must NOT also fire while the player is in the configured AFK world if the per-world ticker (4.1) already covers that world — both currently firing there double-pays (2 shards/min instead of 1). Make the AFK world configurable and have this system explicitly skip players standing in it, so a permission-holder in the AFK world is paid by exactly one of the two systems, never both.
- Gets its own separate, louder/announceable message block (chat can default `enabled: true`), distinct from 4.1's silent one.

## 5. Kill rewards (XShards only — no "killcoins")

- On player death by another player (no self-kills), if the victim has at least the configured minimum shard amount (default `10`), transfer a configurable amount (default `10`) from victim to killer.
- Run the take/give through the same internal currency API used everywhere else (not console commands), for consistency and to avoid any offline-balance race conditions.
- Reward amount, minimum-victim-balance threshold, and the killer's notification (Section 3.1 default text) all come from `killshards.yml`.
- Do not add a "killcoins" feature — kill rewards are shards-only, and follow the same config-driven give/message rules as everything else in this plugin (configurable amount, configurable command-vs-API path, full message-block schema — no hardcoded strings).

## 6. Shop engine

### 6.1 Generic item schema
Every shop item — in either shop — is defined with these fields (all optional except material/slot/price/currency):
```yaml
material: TRIPWIRE_HOOK
custom_model_data: 0            # optional
display_name: "&aCommon Key"
lore:
  - "&#A303F9200 Shards"
slot: 2
glow: false                     # adds an enchant glow with hidden enchant list
price: 200
currency: xshards                # xshards | xcoins
command: "crates givekey %player% common virtuell 1"   # run on success; %player% substituted
permission: ""                   # optional: granted to the player on success, and used for ownership checks below
duplicate_check: false           # if true and permission is set, block re-purchase once they already hold `permission`
requires_previous_permission: "" # optional: must already hold this OTHER permission to buy this item
```
- **Tier-gating logic (this is the important part):**
  - If an item has no `permission` set, it is a plain consumable purchase — the command runs, price is deducted, and the player can buy it **again immediately, any number of times** (this is how crate keys, spawners, and the amethyst tools behave below — no ownership tracking at all).
  - If an item has `permission` set and `duplicate_check: true`, the player can only ever buy it once — once they hold that permission, buying it again is blocked with the "already own" message.
  - If an item additionally has `requires_previous_permission` set, the player must already hold that other node before this purchase is allowed — blocked with the "must own the previous tier" message otherwise. This is how tiered ladders (home slots, auction slots) enforce buying in order.
  - All three checks (balance, duplicate, previous-tier) run independently and each has its own message block, so any combination can be enabled per item.

### 6.2 Confirm-purchase flow
- Clicking a shop item opens a single generic "Confirm Purchase" menu (one reusable layout, not one file per item) showing: the clicked item in the center display slot, a cancel button, and a confirm button.
- Cancel returns the player to whichever shop menu (and whichever `/shardshop` variant — see 6.5) they opened from.
- Confirm re-runs all of the item's checks (balance, duplicate, previous-tier) before charging, then runs the item's command, deducts the price in the item's currency, grants `permission` if set, and fires success or the relevant failure message.
- Default confirm-menu layout: 3 rows (27 slots), cancel in slot 11 (red stained glass, `&#f5240bCancel`, lore `&7Click to cancel`), item display in slot 13, confirm in slot 15 (lime stained glass, `&aConfirm`, lore `&7Click to confirm purchase`).

### 6.3 Shop container menus
- Both `/shardshop` and `/coinshop` are 3-row (27-slot) menus with an air filler across all 27 slots by default, then the real items placed on top.
- Sub-menus (crate keys, chat colors, home slots, auction slots, tools) each get their own back button at slot 18 (red stained glass pane, `&cGo Back`) returning to the coin shop's main menu.

### 6.4 ShardShop — default items (`/shardshop`)
Menu title: `ѕʜᴏᴘ - ѕʜᴀʀᴅ ѕʜᴏᴘ`. Currency: `xshards`. No item here has a `permission` — every item is infinitely repurchasable. Material for every key is `TRIPWIRE_HOOK`; material for every spawner is `SPAWNER`.

| Slot | Display name (exact) | Lore | Price | Command |
|---|---|---|---|---|
| 2 | `<#3CA720>ᴄᴏᴍᴍᴏɴ ᴋᴇʏ` | `<#A303F9>200 Shards` | 200 | `crates givekey %player% common virtuell 1` |
| 3 | `<#2386D3>ᴘʀɪᴍᴇ ᴋᴇʏ` | `<#A303F9>2k Shards` | 2000 | `crates givekey %player% prime virtuell 1` |
| 4 | `<#6E3AAD>ᴀᴍᴇᴛʜʏѕᴛ ᴋᴇʏ` | `<#A303F9>4k Shards` | 4000 | `crates givekey %player% amethyst virtuell 1` |
| 5 | `<#E3B900>ɢᴏʟᴅ ᴋᴇʏ` | `<#A303F9>2k Shards` | 2000 | `crates givekey %player% gold virtuell 1` |
| 6 | `<#C42119>ᴄʀɪᴍѕᴏɴ ᴋᴇʏ` | `<#A303F9>2k Shards` | 2000 | `crates givekey %player% crimson virtuell 1` |
| 10 | `&dIron Golem Spawner` | `<#A303F9>1k Shards` | 1000 | `ss give spawner %player% iron_golem` |
| 11 | `&dSpider Spawner` | `<#A303F9>1k Shards` | 1000 | `ss give spawner %player% spider` |
| 12 | `&dEnderman Spawner` | `<#A303F9>1k Shards` | 1000 | `ss give spawner %player% enderman` |
| 13 | `&dSkeleton Spawner` | `<#A303F9>2k Shards` | 2000 | `ss give spawner %player% skeleton` |
| 14 | `&dCreeper Spawner` | `<#A303F9>1k Shards` | 1000 | `ss give spawner %player% creeper` |
| 15 | `&dCave Spider Spawner` | `<#A303F9>1k Shards` | 1000 | `ss give spawner %player% cave_spider` |
| 16 | `&dZombie Spawner` | `<#A303F9>1k Shards` | 1000 | `ss give spawner %player% zombie` |

None of the shard-shop items have an enchant glow by default (plain items) — that's distinct from the coin shop's crate keys below, which do glow.

### 6.5 `/shardshop` back-button variant
- `/shardshop` opens the menu above with no back button.
- A second command (config-renameable, default label `shardshopwiththebackmenuguibutton`) opens the identical layout **plus** a back button in a configurable slot (default 18), for use when an external `/shop` plugin links into it.
- Track per-player which variant they opened from (a per-player flag) so cancel/back navigation returns them to the correct one.

### 6.6 CoinShop — default menu tree (`/coinshop`)
Main menu title: `ᴄᴏɪɴ ꜱʜᴏᴘ`. Currency for every sub-item below: `xcoins`.

**Main menu items** — the five category buttons (slots 11–15) all carry a `DURABILITY` enchant + `HIDE_ENCHANTS` item flag by default, purely for the glow effect (not a real enchant). Lore on all five category buttons is just `&fClick to open`.
| Slot | Material | Display name (exact) | Behavior |
|---|---|---|---|
| 3 | SUNFLOWER | `&#ffeb14ᴄᴏɪɴꜱ` | Display-only info item; lore: `&8Coins Information`, ``, `&fYou have &#ffeb14%economycore_xcoins_short% &fcoins`; click just plays a click sound |
| 5 | MAP | `�d400ᴡᴇʙꜱᴛᴏʀᴇ ʟɪɴᴋ` | Lore: `&8Coinshop Information`, ``, `&fWant to buy coins?`, `&fCheck out the webstore!`, ``, `&e&l➥ CLICK FOR STORE`; click closes menu and sends the webstore chat block from Section 3.1 |
| 11 | TRIPWIRE_HOOK | `BDDFFᴄʀᴀᴛᴇ ᴋᴇʏꜱ` | Opens the Crate Keys sub-menu |
| 12 | LIME_DYE | `NFF59ᴄʜᴀᴛ ᴄᴏʟᴏʀꜱ` | Opens the Chat Colors sub-menu |
| 13 | RED_BED | `&#FFD155ʜᴏᴍᴇ ꜱʟᴏᴛꜱ` | Opens the Home Slots sub-menu |
| 14 | WHITE_BANNER | `)ACFFᴀᴜᴄᴛɪᴏɴ ꜱʟᴏᴛꜱ` | Opens the Auction Slots sub-menu |
| 15 | NETHERITE_PICKAXE | `&#A20AD6ᴀᴍᴇᴛʜʏꜱᴛ ᴛᴏᴏʟꜱ` | Opens the Amethyst Tools sub-menu |

**Crate Keys sub-menu** — no `permission` on any item; infinitely repurchasable. Material `TRIPWIRE_HOOK` for all five; each carries the same `DURABILITY` + `HIDE_ENCHANTS` glow as the category buttons.
| Slot | Display name (exact) | Lore | Price | Command |
|---|---|---|---|---|
| 11 | `&aᴄᴏᴍᴍᴏɴ ᴋᴇʏ` | `&#A303F9100 Coins` | 100 | `crate givekey %player% common virtuell 1` |
| 12 | `&cᴄʀɪᴍꜱᴏɴ ᴋᴇʏ` | `&#A303F91k Coins` | 1000 | `crate givekey %player% crimson virtuell 1` |
| 13 | `&5ᴀᴍᴇᴛʜʏꜱᴛ ᴋᴇʏ` | `&#A303F91k Coins` | 1000 | `crate givekey %player% amethyst virtuell 1` |
| 14 | `&eɢᴏʟᴅ ᴋᴇʏ` | `&#A303F91k Coins` | 1000 | `crate givekey %player% gold virtuell 1` |
| 15 | `&eᴘʀɪᴍᴇ ᴋᴇʏ` | `&#A303F91k Coins` | 1000 | `crate givekey %player% prime virtuell 1` |

**Chat Colors sub-menu** — each grants a permission with `duplicate_check: true` (buy once), no `requires_previous_permission`, all 650 coins, lore `&#A303F9650 Coins`, no command (permission grant only). No glow on these.
| Slot | Material | Display name (exact) | Permission |
|---|---|---|---|
| 9 | PURPLE_DYE | `&5ᴘᴜʀᴘʟᴇ` | `ezcolors.color.purple` |
| 10 | RED_DYE | `&cʀᴇᴅ` | `ezcolors.color.red` |
| 11 | ORANGE_DYE | `&6ɢᴏʟᴅ` | `ezcolors.color.gold` |
| 12 | YELLOW_DYE | `&eʏᴇʟʟᴏᴡ` | `ezcolors.color.yellow` |
| 13 | LIME_DYE | `&aʟɪᴍᴇ` | `ezcolors.color.lime` |
| 14 | LIGHT_BLUE_DYE | `&3ᴀǫᴜᴀ` | `ezcolors.color.aqua` |
| 15 | BLUE_DYE | `&1ʙʟᴜᴇ` | `ezcolors.color.blue` |
| 16 | PINK_DYE | `&dᴘɪɴᴋ` | `ezcolors.color.pink` |
| 17 | LIGHT_GRAY_DYE | `&7ɢʀᴀʏ` | `ezcolors.color.gray` |

**Home Slots sub-menu** — tiered ladder: each grants a permission with `duplicate_check: true`, and `requires_previous_permission` set to the prior tier's node (tier 1 has none). No command (permission grant only). Material `RED_BED` for all three, no glow.
| Slot | Display name (exact) | Lore | Price | Grants permission | Requires previous |
|---|---|---|---|---|---|
| 12 | `�ff00+1 ʜᴏᴍᴇ sʟᴏᴛ` | `&#A303F9300 Coins` | 300 | `home.limit.3` | — |
| 13 | `�ff00+2 ʜᴏᴍᴇ sʟᴏᴛs` | `&#A303F9600 Coins` | 600 | `home.limit.4` | `home.limit.3` |
| 14 | `�ff00+3 ʜᴏᴍᴇ sʟᴏᴛs` | `&#A303F91k Coins` | 1000 | `home.limit.5` | `home.limit.4` |

**Auction Slots sub-menu** — same tiered pattern. Material `WHITE_BANNER` for all five, no glow.
| Slot | Display name (exact) | Lore | Price | Grants permission | Requires previous |
|---|---|---|---|---|---|
| 11 | `�ff005 ᴀᴜᴄᴛɪᴏɴ sʟᴏᴛs` | `&#A303F9250 Coins` | 250 | `auction.limit.5` | — |
| 12 | `�ff0010 ᴀᴜᴄᴛɪᴏɴ sʟᴏᴛs` | `&#A303F9500 Coins` | 500 | `auction.limit.10` | `auction.limit.5` |
| 13 | `�ff0015 ᴀᴜᴄᴛɪᴏɴ sʟᴏᴛs` | `&#A303F91k Coins` | 1000 | `auction.limit.15` | `auction.limit.10` |
| 14 | `�ff0020 ᴀᴜᴄᴛɪᴏɴ sʟᴏᴛs` | `&#A303F91.5k Coins` | 1500 | `auction.limit.20` | `auction.limit.15` |
| 15 | `�ff0026 ᴀᴜᴄᴛɪᴏɴ sʟᴏᴛs` | `&#A303F92k Coins` | 2000 | `auction.limit.26` | `auction.limit.20` |

**Amethyst Tools sub-menu** — no `permission` on any item; infinitely repurchasable; all 500 coins, lore ends with `&#A303F9500 Coins` on every item. Each tool's full lore also documents its effect and a cosmetic "self-destruct"/durability countdown line — keep these as editable lore lines, not functional timers enforced by this plugin (the tools plugin behind the command owns actual item expiry):

- **Slot 9 — Amethyst Pickaxe** (`NETHERITE_PICKAXE`, display `&#A20AD6ᴀᴍᴇᴛʜʏsᴛ ᴘɪᴄᴋᴀxᴇ`)
  Lore: `&7Breaks 9 Blocks at Once`, `&8Self Destruct:`, `&82d 23h 59m`, ``, `&#A303F9500 Coins`
  Enchants (glow): `MENDING;1`, `EFFICIENCY;5`, `UNBREAKING;3` — Command: `tools give %player% drill`
- **Slot 10 — Amethyst Axe** (`NETHERITE_AXE`, display `&#A20AD6ᴀᴍᴇᴛʜʏsᴛ ᴀxᴇ`)
  Lore: `&7Breaks Trees instantly`, `&8Self Destruct:`, `&82d 23h 59m`, ``, `&#A303F9500 Coins`
  Enchants: `MENDING;1`, `SILK_TOUCH;1`, `EFFICIENCY;5`, `UNBREAKING;3` — Command: `tools give %player% treechopper`
- **Slot 11 — Amethyst Sell Axe** (`NETHERITE_AXE`, display `&#A20AD6ᴀᴍᴇᴛʜʏsᴛ sᴇʟʟ ᴀxᴇ`)
  Lore: `&7Instantly Sells All Items in A Chest`, `&8Self Destruct:`, `&82d 23h 59m`, ``, `&#A303F9500 Coins`
  Enchants: `MENDING;1`, `EFFICIENCY;5`, `UNBREAKING;3` — Command: `sellaxe %player%`
- **Slot 12 — Amethyst Shovel** (`NETHERITE_SHOVEL`, display `&#A20AD6ᴀᴍᴇᴛʏꜱᴛ ꜱʜᴏᴠᴇʟ`)
  Lore: `&7Breaks 9 Blocks at Once`, `&8Self Destruct:`, `&82d 23h 59m`, ``, `&#A303F9500 Coins`
  Enchants: `MENDING;1`, `EFFICIENCY;5`, `UNBREAKING;3` — Command: `tools give %player% shovel`
- **Slot 13 — Amethyst Hoe** (`NETHERITE_HOE`, display `&#A20AD6ᴀᴍᴇᴛʏꜱᴛ ʜᴏᴇ`)
  Lore: `&7Plants 9 Blocks at Once`, `&8Self Destruct:`, `&82d 23h 59m`, ``, `&#A303F9500 Coins`
  Enchants: `FORTUNE;3`, `EFFICIENCY;5`, `UNBREAKING;3` — Command: `tools give %player% hoe`
- **Slot 14 — Infinite Ender Pearl** (`ENDER_PEARL`, display `&#A20AD6ɪɴꜰɪɴɪᴛᴇ ᴇɴᴅᴇʀ ᴘeaʀʟ`)
  Lore: `&7Ender Pearl that never breaks`, `&8Self Destruct:`, `&83d 0h 0m`, ``, `&#A303F9500 Coins`
  Enchants (glow, hidden): `UNBREAKING;1` + `HIDE_ENCHANTS` — Command: `tools give %player% enderpearl time 3d`
- **Slot 15 — Infinity Rocket** (`FIREWORK_ROCKET`, display `&#A20AD6ɪɴꜰɪɴɪᴛʏ ʀᴏᴄᴋᴇᴛ`)
  Lore: `&7Boosts your Elytra flight`, `&8Durability:`, `&82d 23h 59m`, ``, `&#A303F9500 Coins`
  Enchants (glow, hidden): `UNBREAKING;1` + `HIDE_ENCHANTS` — Command: `tools give %player% rocket time 3d`
- **Slot 16 — Amethyst Lava Bucket** (`LAVA_BUCKET`, display `&#A20AD6ᴀᴍᴇᴛʜʏꜱᴛ ʟᴀᴠᴀ ʙᴜᴄᴋᴇᴛ`)
  Lore: `&7Infinite Lava Bucket`, `&8Durability:`, `&82d 23h 59m`, ``, `&#A303F9500 Coins`
  Enchants (glow, hidden): `UNBREAKING;1` + `HIDE_ENCHANTS` — Command: `tools give %player% lavabucket time 3d`
- **Slot 17 — Amethyst Water Bucket** (`WATER_BUCKET`, display `&#A20AD6ᴀᴍᴇᴛʜʏꜱᴛ ᴡᴀᴛᴇʀ ʙᴜᴄᴋᴇᴛ`)
  Lore: `&7Infinite Water Bucket`, `&8Durability:`, `&82d 23h 59m`, ``, `&#A303F9500 Coins`
  Enchants (glow, hidden): `UNBREAKING;1` + `HIDE_ENCHANTS` — Command: `tools give %player% waterbucket time 3d`

## 7. Data storage

- Player balances persist to a `playerdata/` folder inside the plugin's data folder — one file per player (UUID-named), not a shared database. Both currencies live in the same per-player file.
- Load on join/first access, cache in memory, save on quit and periodically/on shutdown.

## 8. Suggested file layout

```
EconomyCore/
  config.yml            # currencies, command aliases + permission nodes, colors, AFK world, thresholds
  passive-income.yml    # Section 4.1 and 4.2 settings + messages
  killshards.yml        # Section 5 settings + messages
  messages.yml          # shared/generic messages (balance lookups, admin command errors)
  gui/
    shardshop.yml
    coinshop.yml
    coinshop-cratekeys.yml
    coinshop-chatcolors.yml
    coinshop-homeslots.yml
    coinshop-auctionslots.yml
    coinshop-tools.yml
    confirm-purchase.yml   # single generic confirm template reused by every item
  playerdata/
    .yml
```
📄
coinshop-auction.yml
yml 70 lines
▶
size: 27
menu_title: ')ACFFᴀᴜᴄᴛɪᴏɴ sʟᴏᴛs'

items:

  'filler':
    material: air
    display_name: "&f"
    damage: 1
    slots: [0-26]

  'back':
    material: RED_STAINED_GLASS_PANE
    damage: 1
    slot: 18
    hide_effects: true
    display_name: "&cGo Back"
    click_commands:
      - '[openmenu] coinshop'

  'tier1':
    material: WHITE_BANNER
    damage: 1
    slot: 11
    display_name: "�ff005 ᴀᴜᴄᴛɪᴏɴ sʟᴏᴛs"
    lore:
      - "&#A303F9250 Coins"
    click_commands:
      - '[openmenu] confirm-auction-tier1'

  'tier2':
    material: WHITE_BANNER
    damage: 1
    slot: 12
    display_name: "�ff0010 ᴀᴜᴄᴛɪᴏɴ sʟᴏᴛs"
    lore:
      - "&#A303F9500 Coins"
    click_commands:
      - '[openmenu] confirm-auction-tier2'

  'tier3':
    material: WHITE_BANNER
    damage: 1
    slot: 13
    display_name: "�ff0015 ᴀᴜᴄᴛɪᴏɴ sʟᴏᴛs"
    lore:
      - "&#A303F91k Coins"
    click_commands:
      - '[openmenu] confirm-auction-tier3'

  'tier4':
    material: WHITE_BANNER
    damage: 1
    slot: 14
    display_name: "�ff0020 ᴀᴜᴄᴛɪᴏɴ sʟᴏᴛs"
    lore:
      - "&#A303F91.5k Coins"
    click_commands:
      - '[openmenu] confirm-auction-tier4'


  'tier5':
    material: WHITE_BANNER
    damage: 1
    slot: 15
    display_name: "�ff0026 ᴀᴜᴄᴛɪᴏɴ sʟᴏᴛs"
    lore:
      - "&#A303F92k Coins"
    click_commands:
      - '[openmenu] confirm-auction-tier5'
📄
coinshop-chatcolors.yml
yml 119 lines
▶
size: 27
menu_title: 'NFF59ᴄʜᴀᴛ ᴄᴏʟᴏʀꜱ'

items:

  'filler':
    material: air
    display_name: "&f"
    damage: 1
    slots: [0-26]

  'back':
    material: RED_STAINED_GLASS_PANE
    damage: 1
    slot: 18
    hide_effects: true
    display_name: "&cGo Back"
    click_commands:
      - '[openmenu] coinshop'
      - '[sound] UI_BUTTON_CLICK 1 1'

  'red':
    material: RED_DYE
    damage: 1
    slot: 10
    display_name: "&cʀᴇᴅ"
    lore:
      - "&#A303F9650 Coins"
    click_commands:
      - '[sound] UI_BUTTON_CLICK 1 1'
      - '[openmenu] confirm-chatcolor-red'

  'gold':
    material: ORANGE_DYE
    damage: 1
    slot: 11
    display_name: "&6ɢᴏʟᴅ"
    lore:
      - "&#A303F9650 Coins"
    click_commands:
      - '[sound] UI_BUTTON_CLICK 1 1'
      - '[openmenu] confirm-chatcolor-gold'

  'yellow':
    material: YELLOW_DYE
    damage: 1
    slot: 12
    display_name: "&eʏᴇʟʟᴏᴡ"
    lore:
      - "&#A303F9650 Coins"
    click_commands:
      - '[sound] UI_BUTTON_CLICK 1 1'
      - '[openmenu] confirm-chatcolor-yellow'

  'lime':
    material: LIME_DYE
    damage: 1
    slot: 13
    display_name: "&aʟɪᴍᴇ"
    lore:
      - "&#A303F9650 Coins"
    click_commands:
      - '[sound] UI_BUTTON_CLICK 1 1'
      - '[openmenu] confirm-chatcolor-lime'

  'aqua':
    material: LIGHT_BLUE_DYE
    damage: 1
    slot: 14
    display_name: "&3ᴀǫᴜᴀ"
    lore:
      - "&#A303F9650 Coins"
    click_commands:
      - '[sound] UI_BUTTON_CLICK 1 1'
      - '[openmenu] confirm-chatcolor-aqua'

  'blue':
    material: BLUE_DYE
    damage: 1
    slot: 15
    display_name: "&1ʙʟᴜᴇ"
    lore:
      - "&#A303F9650 Coins"
    click_commands:
      - '[sound] UI_BUTTON_CLICK 1 1'
      - '[openmenu] confirm-chatcolor-blue'

  'pink':
    material: PINK_DYE
    damage: 1
    slot: 16
    display_name: "&dᴘɪɴᴋ"
    lore:
      - "&#A303F9650 Coins"
    click_commands:
      - '[sound] UI_BUTTON_CLICK 1 1'
      - '[openmenu] confirm-chatcolor-pink'

  'purple':
    material: PURPLE_DYE
    damage: 1
    slot: 9
    display_name: "&5ᴘᴜʀᴘʟᴇ"
    lore:
      - "&#A303F9650 Coins"
    click_commands:
      - '[sound] UI_BUTTON_CLICK 1 1'
      - '[openmenu] confirm-chatcolor-purple'

  'gray':
    material: LIGHT_GRAY_DYE
    damage: 1
    slot: 17
    display_name: "&7ɢʀᴀʏ"
    lore:
      - "&#A303F9650 Coins"
    click_commands:
      - '[sound] UI_BUTTON_CLICK 1 1'
      - '[openmenu] confirm-chatcolor-gray'
📄
coinshop-cratekeys.yml
yml 100 lines
▶
size: 27
menu_title: 'BDDFFᴄʀᴀᴛᴇ ᴋᴇʏꜱ'

items:

  'filler':
    material: air
    display_name: "&f"
    damage: 1
    slots: [0-26]

  'back':
    material: RED_STAINED_GLASS_PANE
    damage: 1
    slot: 18
    hide_effects: true
    display_name: "&cGo Back"
    click_commands:
      - '[openmenu] coinshop'
      - '[sound] UI_BUTTON_CLICK 1 1'

  'common':
    material: TRIPWIRE_HOOK
    damage: 1
    slot: 11
    amount: 1
    display_name: "&aᴄᴏᴍᴍᴏɴ ᴋᴇʏ"
    enchantments:
      - DURABILITY;1
    item_flags:
      - HIDE_ENCHANTS
    lore:
      - "&#A303F9100 Coins"
    click_commands:
      - '[sound] UI_BUTTON_CLICK 1 1'
      - '[openmenu] confirm-cratekey-common'

  'crimson':
    material: TRIPWIRE_HOOK
    damage: 1
    slot: 12
    amount: 1
    display_name: "&cᴄʀɪᴍꜱᴏɴ ᴋᴇʏ"
    enchantments:
      - DURABILITY;1
    item_flags:
      - HIDE_ENCHANTS
    lore:
      - "&#A303F91k Coins"
    click_commands:
      - '[sound] UI_BUTTON_CLICK 1 1'
      - '[openmenu] confirm-cratekey-crimson'

  'amethyst':
    material: TRIPWIRE_HOOK
    damage: 1
    slot: 13
    amount: 1
    display_name: "&5ᴀᴍᴇᴛʜʏꜱᴛ ᴋᴇʏ"
    enchantments:
      - DURABILITY;1
    item_flags:
      - HIDE_ENCHANTS
    lore:
      - "&#A303F91k Coins"
    click_commands:
      - '[sound] UI_BUTTON_CLICK 1 1'
      - '[openmenu] confirm-cratekey-amethyst'

  'gold':
    material: TRIPWIRE_HOOK
    damage: 1
    slot: 14
    amount: 1
    display_name: "&eɢᴏʟᴅ ᴋᴇʏ"
    enchantments:
      - DURABILITY;1
    item_flags:
      - HIDE_ENCHANTS
    lore:
      - "&#A303F91k Coins"
    click_commands:
      - '[sound] UI_BUTTON_CLICK 1 1'
      - '[openmenu] confirm-cratekey-gold'

  'prime':
    material: TRIPWIRE_HOOK
    damage: 1
    slot: 15
    amount: 1
    display_name: "&eᴘʀɪᴍᴇ ᴋᴇʏ"
    enchantments:
      - DURABILITY;1
    item_flags:
      - HIDE_ENCHANTS
    lore:
      - "&#A303F91k Coins"
    click_commands:
      - '[sound] UI_BUTTON_CLICK 1 1'
      - '[openmenu] confirm-cratekey-prime'
📄
coinshop-particles.yml
yml 53 lines
▶
size: 27
menu_title: '&#FFD155ʜᴏᴍᴇ sʟᴏᴛs'

items:

  'filler':
    material: air
    display_name: "&f"
    damage: 1
    slots: [0-26]

  'back':
    material: RED_STAINED_GLASS_PANE
    damage: 1
    slot: 18
    hide_effects: true
    display_name: "&cGo Back"
    click_commands:
      - '[openmenu] coinshop'
      - '[sound] UI_BUTTON_CLICK 1 1'

  'tier1':
    material: RED_BED
    damage: 1
    slot: 12
    display_name: "�ff00+1 ʜᴏᴍᴇ sʟᴏᴛ"
    lore:
      - "&#A303F9300 Coins"
    click_commands:
      - '[sound] UI_BUTTON_CLICK 1 1'
      - '[openmenu] confirm-home-tier1'

  'tier2':
    material: RED_BED
    damage: 1
    slot: 13
    display_name: "�ff00+2 ʜᴏᴍᴇ sʟᴏᴛs"
    lore:
      - "&#A303F9600 Coins"
    click_commands:
      - '[sound] UI_BUTTON_CLICK 1 1'
      - '[openmenu] confirm-home-tier2'

  'tier3':
    material: RED_BED
    damage: 1
    slot: 14
    display_name: "�ff00+3 ʜᴏᴍᴇ sʟᴏᴛs"
    lore:
      - "&#A303F91k Coins"
    click_commands:
      - '[sound] UI_BUTTON_CLICK 1 1'
      - '[openmenu] confirm-home-tier3'
📄
coinshop-pets.yml
yml 183 lines
▶
size: 27
menu_title: '&#A20AD6ᴀᴍᴇᴛʜʏsᴛ ᴛᴏᴏʟs'

items:

  'filler':
    material: air
    display_name: "&f"
    damage: 1
    slots: [0-26]

  'back':
    material: RED_STAINED_GLASS_PANE
    damage: 1
    slot: 18
    hide_effects: true
    display_name: "&cGo Back"
    click_commands:
      - '[openmenu] coinshop'
      - '[sound] UI_BUTTON_CLICK 1 1'

  'amethyst_pickaxe':
    material: NETHERITE_PICKAXE
    slot: 9
    display_name: '&#A20AD6ᴀᴍᴇᴛʜʏsᴛ ᴘɪᴄᴋᴀxᴇ'
    lore:
      - '&7Breaks 9 Blocks at Once'
      - '&8Self Destruct:'
      - '&82d 23h 59m'
      - ''
      - "&#A303F9500 Coins"
    enchantments:
      - MENDING;1
      - EFFICIENCY;5
      - UNBREAKING;3
    click_commands:
      - '[sound] UI_BUTTON_CLICK 1 1'
      - '[openmenu] confirm-tool-pickaxe'

  'amethyst_axe':
    material: NETHERITE_AXE
    slot: 10
    display_name: '&#A20AD6ᴀᴍᴇᴛʜʏsᴛ ᴀxᴇ'
    lore:
      - '&7Breaks Trees instantly'
      - '&8Self Destruct:'
      - '&82d 23h 59m'
      - ''
      - "&#A303F9500 Coins"
    enchantments:
      - MENDING;1
      - SILK_TOUCH;1
      - EFFICIENCY;5
      - UNBREAKING;3
    click_commands:
      - '[sound] UI_BUTTON_CLICK 1 1'
      - '[openmenu] confirm-tool-axe'

  'amethyst_sell_axe':
    material: NETHERITE_AXE
    slot: 11
    display_name: '&#A20AD6ᴀᴍᴇᴛʜʏsᴛ sᴇʟʟ ᴀxᴇ'
    lore:
      - '&7Instantly Sells All Items in A Chest'
      - '&8Self Destruct:'
      - '&82d 23h 59m'
      - ''
      - "&#A303F9500 Coins"
    enchantments:
      - MENDING;1
      - EFFICIENCY;5
      - UNBREAKING;3
    click_commands:
      - '[sound] UI_BUTTON_CLICK 1 1'
      - '[openmenu] confirm-tool-sellaxe'

  'amethyst_shovel':
    material: NETHERITE_SHOVEL
    slot: 12
    display_name: '&#A20AD6ᴀᴍᴇᴛʏꜱᴛ ꜱʜᴏᴠᴇʟ'
    lore:
      - '&7Breaks 9 Blocks at Once'
      - '&8Self Destruct:'
      - '&82d 23h 59m'
      - ''
      - "&#A303F9500 Coins"
    enchantments:
      - MENDING;1
      - EFFICIENCY;5
      - UNBREAKING;3
    click_commands:
      - '[sound] UI_BUTTON_CLICK 1 1'
      - '[openmenu] confirm-tool-shovel'

  'amethyst_hoe':
    material: NETHERITE_HOE
    slot: 13
    display_name: '&#A20AD6ᴀᴍᴇᴛʏꜱᴛ ʜᴏᴇ'
    lore:
      - '&7Plants 9 Blocks at Once'
      - '&8Self Destruct:'
      - '&82d 23h 59m'
      - ''
      - "&#A303F9500 Coins"
    enchantments:
      - FORTUNE;3
      - EFFICIENCY;5
      - UNBREAKING;3
    click_commands:
      - '[sound] UI_BUTTON_CLICK 1 1'
      - '[openmenu] confirm-tool-hoe'

  'infinite_ender_pearl':
    material: ENDER_PEARL
    slot: 14
    display_name: '&#A20AD6ɪɴꜰɪɴɪᴛᴇ ᴇɴᴅᴇʀ ᴘeaʀʟ'
    lore:
      - '&7Ender Pearl that never breaks'
      - '&8Self Destruct:'
      - '&83d 0h 0m'
      - ''
      - "&#A303F9500 Coins"
    enchantments:
      - UNBREAKING;1
    item_flags:
      - HIDE_ENCHANTS
    click_commands:
      - '[sound] UI_BUTTON_CLICK 1 1'
      - '[openmenu] confirm-tool-enderpearl'

  'infinity_rocket':
    material: FIREWORK_ROCKET
    slot: 15
    display_name: '&#A20AD6ɪɴꜰɪɴɪᴛʏ ʀᴏᴄᴋᴇᴛ'
    lore:
      - '&7Boosts your Elytra flight'
      - '&8Durability:'
      - '&82d 23h 59m'
      - ''
      - "&#A303F9500 Coins"
    enchantments:
      - UNBREAKING;1
    item_flags:
      - HIDE_ENCHANTS
    click_commands:
      - '[sound] UI_BUTTON_CLICK 1 1'
      - '[openmenu] confirm-tool-rocket'

  'amethyst_lava_bucket':
    material: LAVA_BUCKET
    slot: 16
    display_name: '&#A20AD6ᴀᴍᴇᴛʜʏꜱᴛ ʟᴀᴠᴀ ʙᴜᴄᴋᴇᴛ'
    lore:
      - '&7Infinite Lava Bucket'
      - '&8Durability:'
      - '&82d 23h 59m'
      - ''
      - "&#A303F9500 Coins"
    enchantments:
      - UNBREAKING;1
    item_flags:
      - HIDE_ENCHANTS
    click_commands:
      - '[sound] UI_BUTTON_CLICK 1 1'
      - '[openmenu] confirm-tool-lavabucket'

  'amethyst_water_bucket':
    material: WATER_BUCKET
    slot: 17
    display_name: '&#A20AD6ᴀᴍᴇᴛʜʏꜱᴛ ᴡᴀᴛᴇʀ ʙᴜᴄᴋᴇᴛ'
    lore:
      - '&7Infinite Water Bucket'
      - '&8Durability:'
      - '&82d 23h 59m'
      - ''
      - "&#A303F9500 Coins"
    enchantments:
      - UNBREAKING;1
    item_flags:
      - HIDE_ENCHANTS
    click_commands:
      - '[sound] UI_BUTTON_CLICK 1 1'
      - '[openmenu] confirm-tool-waterbucket'
📄
coinshop.yml
yml 119 lines
▶
open_command: coinshop
register_command: true
size: 27
menu_title: 'ᴄᴏɪɴ ꜱʜᴏᴘ'

items:

  'filler':
    material: air
    display_name: "&f"
    damage: 1
    slots: [0-26]

  'main':
    material: SUNFLOWER
    damage: 1
    slot: 3
    display_name: "&#ffeb14ᴄᴏɪɴꜱ"
    lore:
      - "&8Coins Information"
      - ""
      - "&fYou have &#ffeb14%playerpoints_points_shorthand% &fcoins"
    click_commands:
      - '[sound] UI_BUTTON_CLICK 0.5'

  'store':
    material: MAP
    damage: 1
    slot: 5
    display_name: "�d400ᴡᴇʙꜱᴛᴏʀᴇ ʟɪɴᴋ"
    lore:
      - "&8Coinshop Information"
      - ""
      - "&fWant to buy coins?"
      - "&fCheck out the webstore!"
      - ""
      - "&e&l➥ CLICK FOR STORE"
    click_commands:
      - '[sound] ENTITY_EXPERIENCE_ORB_PICKUP 0.5'
      - '[message]  '
      - '[message]  '
      - '[message] BF8FFVisit the webstone to top up on coins!'
      - '[message]  '
      - '[message] BF8FF➥ https://discord.gg/vGdVQXp3xu'
      - '[message]  '
      - '[message]  '
      - '[close]'

  'crate-keys':
    material: TRIPWIRE_HOOK
    damage: 1
    slot: 11
    display_name: "BDDFFᴄʀᴀᴛᴇ ᴋᴇʏꜱ"
    lore:
      - "&fClick to open"
    enchantments:
      - DURABILITY;1
    item_flags:
      - HIDE_ENCHANTS
    click_commands:
      - '[sound] UI_BUTTON_CLICK 0.5'
      - '[openmenu] coinshop-cratekeys'

  'chat-colors':
    material: LIME_DYE
    damage: 1
    slot: 12
    display_name: "NFF59ᴄʜᴀᴛ ᴄᴏʟᴏʀꜱ"
    lore:
      - "&fClick to open"
    enchantments:
      - DURABILITY;1
    item_flags:
      - HIDE_ENCHANTS
    click_commands:
      - '[sound] UI_BUTTON_CLICK 0.5'
      - '[openmenu] coinshop-chatcolors'

  'Home-slots':
    material: RED_BED
    slot: 13
    display_name: "&#FFD155ʜᴏᴍᴇ ꜱʟᴏᴛꜱ"
    lore:
      - "&fClick to open"
    enchantments:
      - DURABILITY;1
    item_flags:
      - HIDE_ENCHANTS
    click_commands:
      - '[sound] UI_BUTTON_CLICK 0.5'
      - '[openguimenu] coinshop-particles'

  'auction-slots':
    material: WHITE_BANNER
    slot: 14
    display_name: ")ACFFᴀᴜᴄᴛɪᴏɴ ꜱʟᴏᴛꜱ"
    lore:
      - "&fClick to open"
    enchantments:
      - DURABILITY;1
    item_flags:
      - HIDE_ENCHANTS
    click_commands:
      - '[sound] UI_BUTTON_CLICK 0.5'
      - '[openguimenu] coinshop-auction'

  'amethyst-shop':
    material: NETHERITE_PICKAXE
    slot: 15
    display_name: "&#A20AD6ᴀᴍᴇᴛʜʏꜱᴛ ᴛᴏᴏʟꜱ"
    lore:
      - "&fClick to open"
    enchantments:
      - DURABILITY;1
    item_flags:
      - HIDE_ENCHANTS
    click_commands:
      - '[sound] UI_BUTTON_CLICK 0.5'
      - '[openguimenu] coinshop-pets'
Kodari AI
KodariSep 24 at 2:55 am 1
EconomyCore
EconomyCore is a comprehensive Paper/Spigot plugin managing two independent currencies (XShards and XCoins) with fully configurable shops, passive income systems, and kill rewards. It features a dynamic menu engine with tiered purchasing, permission-based ownership tracking, and confirm-purchase flows. All commands, permissions, messages, and GUI layouts are driven by editable YAML files, supporting hex colors, PlaceholderAPI integration, and per-channel message routing. The plugin includes shard and coin shops with crate keys, spawners, chat colors, home slots, auction slots, and amethyst tools, plus per-world shard tickers and permission-based passive income with AFK-world exceptions. Everything is renameable and configurable without code changes.
  1. Create the Paper plugin scaffold and config-driven currency, command, message, and placeholder services.

  2. Add the editable shard/coin shop menus with reusable purchase confirmation and tier/ownership checks.

  3. Add passive shard income, kill rewards, per-player persistence, and placeholder/permission documentation in config.

[Generation stopped]

A
📎 1 file 23,999 chars
📄
economycore-plugin-prompt.md
md 298 lines
▶
# EconomyCore — Build Prompt

Build a single Paper/Spigot Java plugin called **EconomyCore** from scratch. It manages two independent currencies (XShards, XCoins), a shard shop, a coin shop, passive shard income, and kill rewards — all driven by editable YAML, with no hardcoded text, prices, commands, GUI layouts, command names, or permission nodes anywhere in the code. Everything below (item lists, prices, commands, permissions, and message text) is the exact default configuration the plugin should ship with out of the box — treat it as data to load from config files, not as fixed logic.

## 0. Everything is renameable: commands and permissions

This is a hard requirement across the whole plugin, because the reward plugins behind these shops get swapped over time: **every command this plugin registers, and every permission node it checks or grants anywhere, must be a value read from `config.yml` at startup** — never a literal string baked into code. This applies to:

- Every top-level command: `/xshards`, `/xcoins`, `/shard`/`/shards`, `/coin`/`/coins`, `/shardshop`, `/coinshop`, and the back-button shop variant — the command label and its aliases are config values, so any of them can be renamed without touching code.
- Every permission node the plugin checks or grants anywhere: admin-command permissions, passive-income permissions, every shop item's "grants this permission" and "requires this other permission first" nodes, and any permission-gated visibility in the GUIs. None of these are hardcoded strings in Java — they're all keys read from config, with the values listed in this document as their shipped defaults.
- Every shop item's give-command (crate keys, spawners, tools) is likewise a config value with `%player%` substitution, never hardcoded per-item logic, since the plugins that fulfill those commands (crates plugin, spawner plugin, tools plugin) get replaced independently of this plugin.
- Register commands dynamically from config at `onEnable` (via Bukkit's command map) rather than only declaring static commands in `plugin.yml`, so a renamed command actually takes effect from a config edit.

## 1. Scope & non-goals

- Two currencies: **XShards** and **XCoins**. Fully independent — separate storage, separate commands, separate placeholders.
- **No player-to-player pay/transfer for either currency.** Balances only change via: admin commands, permission-based passive income, kill rewards (shards only), and shop purchases (deduction only). Do not implement `/pay`.
- Build a lightweight, self-contained menu engine — do not depend on any other menu plugin. It needs the same *capabilities* as a full-featured menu plugin (per-item material/name/lore/slot/commands/permission requirements/tier requirements) but with a **simpler, flatter YAML schema** than typical DeluxeMenus-style configs, since these files will be hand-edited often.

## 2. Currencies

### 2.1 XShards
- Integer balance per player, keyed by UUID.
- Short display form uses K / M / B / T suffixes at 1 decimal place (e.g. `1.5K`, `2.3M`, `4T`), matching standard shorthand-number rounding.

### 2.2 XCoins
- Identical structure/behavior to XShards but a fully separate balance store owned entirely by this plugin (no dependency on any other economy/points plugin).

### 2.3 Admin commands
```
/xshards   
/xcoins    
```
- Both admin-only; permission per currency — default node names `economycore.xshards.admin` / `economycore.xcoins.admin` (renameable per Section 0).
- `amount` required for give/take/set (positive for give/take, non-negative for set); `reset` takes no amount and zeroes the balance.
- `take` floors at 0, never goes negative.
- Tab-complete online + offline player names.

### 2.4 Balance-check commands
```
/shard, /shards   -> own or another player's XShards balance
/coin, /coins     -> own or another player's XCoins balance
```
- No-arg: your own balance. With a player-name arg: look up that offline player.
- Output both in chat and actionbar simultaneously, plus a pickup-sound on success and a villager-no sound + error message if the named player has never joined.
- Tab-complete all player names.
- Default message text and colors (all configurable per Section 3):
  - Own shards: chat + actionbar `&7Your shards: <#A303F9>%amount%`, sound `entity.experience_orb.pickup` volume `0.5`.
  - Other player's shards: chat + actionbar `<#10a5eb>%target%'s &7shards: <#A303F9>%amount%`, same sound.
  - Own coins: chat + actionbar `&7Your coins: <#ffeb14>%amount%`, sound `entity.experience_orb.pickup` volume `0.5`.
  - Other player's coins: chat + actionbar `<#10a5eb>%target%'s &7coins: <#ffeb14>%amount%`, same sound.
  - Player not found: chat + actionbar `&cThat User does not exist!`, sound `entity.villager.no` volume `0.5`.

### 2.5 Placeholders (PlaceholderAPI)
```
%economycore_xshards_amount%   %economycore_xshards_short%
%economycore_xcoins_amount%    %economycore_xcoins_short%
```
Support an offline-player context (falls back to the viewing player if no target given), so external plugins (TAB, holograms) can keep displaying balances.

## 3. Config-driven message system

Every player-facing event in the plugin (purchase success, insufficient funds, already-own, must-own-previous-tier, passive-income tick, kill reward, balance lookups) uses **one shared message block schema**, independently toggleable per channel:

```yaml
some-event:
  chat:
    enabled: true
    text: "&cTeleport cancelled because you moved!"
  actionbar:
    enabled: false
    text: ""
  sound:
    enabled: false
    sound: "ENTITY_VILLAGER_NO"
    volume: 1.0
    pitch: 1.0
```
- Each of chat/actionbar/sound is independently on/off — none require the others.
- Support hex colors (`&#RRGGBB`) and `&` legacy codes in every text field.
- Route every feature (shop, passive income, kill rewards, balance commands) through one shared `MessageService` rather than each feature formatting/sending its own text.

### 3.1 Default message text to ship (all editable, listed here so nothing is lost by building from scratch)

**Shop browsing / navigation**
- Item click / menu-open sound: `UI_BUTTON_CLICK`, volume `1.0`, pitch `1.0`.
- Cancel button: no chat/actionbar text, just the click sound, then return to the menu the player came from.

**Purchase success** (generic template used by every shop item unless a per-item override is set)
- Shard shop: chat + actionbar `&fYou bought <#00a4fc>1 %item_label% &ffor <#A303F9>%display_price% Shards`, sound `ENTITY_EXPERIENCE_ORB_PICKUP` volume `0.5`.
- Coin shop: chat `&7You bought %item_label%&7!`, sound `ENTITY_EXPERIENCE_ORB_PICKUP` volume `1.0`. (The original coin-shop items each had slightly flavored wording — e.g. "You bought a **Common Key**!", "You bought **+1 Home Slot**", "You bought **Red** chat color" — keep those exact per-item strings available as optional overrides on top of the generic template.)

**Insufficient balance**
- Shard shop: chat + actionbar `&cYou don't have enough shards.`, sound `ENTITY_VILLAGER_NO` volume `0.5`.
- Coin shop: chat `&cYou don't have enough coins to purchase this item!`, actionbar (via title actionbar) `You don't have enough coins` in red, sound `ENTITY_VILLAGER_NO` volume `1.0`.

**Already own this item** (permission-gated items only): chat `&cYou already own that item!`, actionbar `You already own that item!` in red, sound `ENTITY_VILLAGER_NO` volume `1.0`.

**Must own the previous tier first** (tiered items only): chat `&cYou must own the previous tier first!`, actionbar `You must own the previous tier first!` in red, sound `ENTITY_VILLAGER_NO` volume `1.0`.

**Coin-shop webstore-link item click**: closes the menu and sends this chat block, sound `ENTITY_EXPERIENCE_ORB_PICKUP` volume `0.5`:
```
Visit the webstore to top up on coins!
➥ https://discord.gg/vGdVQXp3xu
```
(blank lines above/below each line, exact spacing/discord link kept as the shipped default — obviously editable).

**Kill reward notification** (to the killer): chat + actionbar `<##A303F8>+★10 <##A2A9B5>for killing %victim%` (no sound by default).

## 4. Passive shard income (two independent systems)

Both systems only ever apply to **XShards**. Each has its own enable flag, interval, give-command, and message block (Section 3) — they never share config or messages, since one must stay silent and the other can chat-announce.

### 4.1 Per-world "shard world" ticker
- Config: list of world names it's active in (default `["world"]`), interval in seconds (default `60`), amount, and the give-command (default `xshards give %player% 1`).
- Every player standing in a configured world sees a live countdown actionbar the whole time via a custom `%time%` placeholder counting down from the interval to 1, then fires the give-command and resets. Default actionbar text: `&7Next shard In: &#A303F9%time%`.
- This is the **silent** giver: chat defaults to `enabled: false` on award; only actionbar/sound announce by default.

### 4.2 Permission-based passive income
- Any player holding a configured permission (default `economycore.shards.passive`) receives shards every interval **regardless of what world they're in**, except:
- **AFK-world exception:** must NOT also fire while the player is in the configured AFK world if the per-world ticker (4.1) already covers that world — both currently firing there double-pays (2 shards/min instead of 1). Make the AFK world configurable and have this system explicitly skip players standing in it, so a permission-holder in the AFK world is paid by exactly one of the two systems, never both.
- Gets its own separate, louder/announceable message block (chat can default `enabled: true`), distinct from 4.1's silent one.

## 5. Kill rewards (XShards only — no "killcoins")

- On player death by another player (no self-kills), if the victim has at least the configured minimum shard amount (default `10`), transfer a configurable amount (default `10`) from victim to killer.
- Run the take/give through the same internal currency API used everywhere else (not console commands), for consistency and to avoid any offline-balance race conditions.
- Reward amount, minimum-victim-balance threshold, and the killer's notification (Section 3.1 default text) all come from `killshards.yml`.
- Do not add a "killcoins" feature — kill rewards are shards-only, and follow the same config-driven give/message rules as everything else in this plugin (configurable amount, configurable command-vs-API path, full message-block schema — no hardcoded strings).

## 6. Shop engine

### 6.1 Generic item schema
Every shop item — in either shop — is defined with these fields (all optional except material/slot/price/currency):
```yaml
material: TRIPWIRE_HOOK
custom_model_data: 0            # optional
display_name: "&aCommon Key"
lore:
  - "&#A303F9200 Shards"
slot: 2
glow: false                     # adds an enchant glow with hidden enchant list
price: 200
currency: xshards                # xshards | xcoins
command: "crates givekey %player% common virtuell 1"   # run on success; %player% substituted
permission: ""                   # optional: granted to the player on success, and used for ownership checks below
duplicate_check: false           # if true and permission is set, block re-purchase once they already hold `permission`
requires_previous_permission: "" # optional: must already hold this OTHER permission to buy this item
```
- **Tier-gating logic (this is the important part):**
  - If an item has no `permission` set, it is a plain consumable purchase — the command runs, price is deducted, and the player can buy it **again immediately, any number of times** (this is how crate keys, spawners, and the amethyst tools behave below — no ownership tracking at all).
  - If an item has `permission` set and `duplicate_check: true`, the player can only ever buy it once — once they hold that permission, buying it again is blocked with the "already own" message.
  - If an item additionally has `requires_previous_permission` set, the player must already hold that other node before this purchase is allowed — blocked with the "must own the previous tier" message otherwise. This is how tiered ladders (home slots, auction slots) enforce buying in order.
  - All three checks (balance, duplicate, previous-tier) run independently and each has its own message block, so any combination can be enabled per item.

### 6.2 Confirm-purchase flow
- Clicking a shop item opens a single generic "Confirm Purchase" menu (one reusable layout, not one file per item) showing: the clicked item in the center display slot, a cancel button, and a confirm button.
- Cancel returns the player to whichever shop menu (and whichever `/shardshop` variant — see 6.5) they opened from.
- Confirm re-runs all of the item's checks (balance, duplicate, previous-tier) before charging, then runs the item's command, deducts the price in the item's currency, grants `permission` if set, and fires success or the relevant failure message.
- Default confirm-menu layout: 3 rows (27 slots), cancel in slot 11 (red stained glass, `&#f5240bCancel`, lore `&7Click to cancel`), item display in slot 13, confirm in slot 15 (lime stained glass, `&aConfirm`, lore `&7Click to confirm purchase`).

### 6.3 Shop container menus
- Both `/shardshop` and `/coinshop` are 3-row (27-slot) menus with an air filler across all 27 slots by default, then the real items placed on top.
- Sub-menus (crate keys, chat colors, home slots, auction slots, tools) each get their own back button at slot 18 (red stained glass pane, `&cGo Back`) returning to the coin shop's main menu.

### 6.4 ShardShop — default items (`/shardshop`)
Menu title: `ѕʜᴏᴘ - ѕʜᴀʀᴅ ѕʜᴏᴘ`. Currency: `xshards`. No item here has a `permission` — every item is infinitely repurchasable. Material for every key is `TRIPWIRE_HOOK`; material for every spawner is `SPAWNER`.

| Slot | Display name (exact) | Lore | Price | Command |
|---|---|---|---|---|
| 2 | `<#3CA720>ᴄᴏᴍᴍᴏɴ ᴋᴇʏ` | `<#A303F9>200 Shards` | 200 | `crates givekey %player% common virtuell 1` |
| 3 | `<#2386D3>ᴘʀɪᴍᴇ ᴋᴇʏ` | `<#A303F9>2k Shards` | 2000 | `crates givekey %player% prime virtuell 1` |
| 4 | `<#6E3AAD>ᴀᴍᴇᴛʜʏѕᴛ ᴋᴇʏ` | `<#A303F9>4k Shards` | 4000 | `crates givekey %player% amethyst virtuell 1` |
| 5 | `<#E3B900>ɢᴏʟᴅ ᴋᴇʏ` | `<#A303F9>2k Shards` | 2000 | `crates givekey %player% gold virtuell 1` |
| 6 | `<#C42119>ᴄʀɪᴍѕᴏɴ ᴋᴇʏ` | `<#A303F9>2k Shards` | 2000 | `crates givekey %player% crimson virtuell 1` |
| 10 | `&dIron Golem Spawner` | `<#A303F9>1k Shards` | 1000 | `ss give spawner %player% iron_golem` |
| 11 | `&dSpider Spawner` | `<#A303F9>1k Shards` | 1000 | `ss give spawner %player% spider` |
| 12 | `&dEnderman Spawner` | `<#A303F9>1k Shards` | 1000 | `ss give spawner %player% enderman` |
| 13 | `&dSkeleton Spawner` | `<#A303F9>2k Shards` | 2000 | `ss give spawner %player% skeleton` |
| 14 | `&dCreeper Spawner` | `<#A303F9>1k Shards` | 1000 | `ss give spawner %player% creeper` |
| 15 | `&dCave Spider Spawner` | `<#A303F9>1k Shards` | 1000 | `ss give spawner %player% cave_spider` |
| 16 | `&dZombie Spawner` | `<#A303F9>1k Shards` | 1000 | `ss give spawner %player% zombie` |

None of the shard-shop items have an enchant glow by default (plain items) — that's distinct from the coin shop's crate keys below, which do glow.

### 6.5 `/shardshop` back-button variant
- `/shardshop` opens the menu above with no back button.
- A second command (config-renameable, default label `shardshopwiththebackmenuguibutton`) opens the identical layout **plus** a back button in a configurable slot (default 18), for use when an external `/shop` plugin links into it.
- Track per-player which variant they opened from (a per-player flag) so cancel/back navigation returns them to the correct one.

### 6.6 CoinShop — default menu tree (`/coinshop`)
Main menu title: `ᴄᴏɪɴ ꜱʜᴏᴘ`. Currency for every sub-item below: `xcoins`.

**Main menu items** — the five category buttons (slots 11–15) all carry a `DURABILITY` enchant + `HIDE_ENCHANTS` item flag by default, purely for the glow effect (not a real enchant). Lore on all five category buttons is just `&fClick to open`.
| Slot | Material | Display name (exact) | Behavior |
|---|---|---|---|
| 3 | SUNFLOWER | `&#ffeb14ᴄᴏɪɴꜱ` | Display-only info item; lore: `&8Coins Information`, ``, `&fYou have &#ffeb14%economycore_xcoins_short% &fcoins`; click just plays a click sound |
| 5 | MAP | `�d400ᴡᴇʙꜱᴛᴏʀᴇ ʟɪɴᴋ` | Lore: `&8Coinshop Information`, ``, `&fWant to buy coins?`, `&fCheck out the webstore!`, ``, `&e&l➥ CLICK FOR STORE`; click closes menu and sends the webstore chat block from Section 3.1 |
| 11 | TRIPWIRE_HOOK | `BDDFFᴄʀᴀᴛᴇ ᴋᴇʏꜱ` | Opens the Crate Keys sub-menu |
| 12 | LIME_DYE | `NFF59ᴄʜᴀᴛ ᴄᴏʟᴏʀꜱ` | Opens the Chat Colors sub-menu |
| 13 | RED_BED | `&#FFD155ʜᴏᴍᴇ ꜱʟᴏᴛꜱ` | Opens the Home Slots sub-menu |
| 14 | WHITE_BANNER | `)ACFFᴀᴜᴄᴛɪᴏɴ ꜱʟᴏᴛꜱ` | Opens the Auction Slots sub-menu |
| 15 | NETHERITE_PICKAXE | `&#A20AD6ᴀᴍᴇᴛʜʏꜱᴛ ᴛᴏᴏʟꜱ` | Opens the Amethyst Tools sub-menu |

**Crate Keys sub-menu** — no `permission` on any item; infinitely repurchasable. Material `TRIPWIRE_HOOK` for all five; each carries the same `DURABILITY` + `HIDE_ENCHANTS` glow as the category buttons.
| Slot | Display name (exact) | Lore | Price | Command |
|---|---|---|---|---|
| 11 | `&aᴄᴏᴍᴍᴏɴ ᴋᴇʏ` | `&#A303F9100 Coins` | 100 | `crate givekey %player% common virtuell 1` |
| 12 | `&cᴄʀɪᴍꜱᴏɴ ᴋᴇʏ` | `&#A303F91k Coins` | 1000 | `crate givekey %player% crimson virtuell 1` |
| 13 | `&5ᴀᴍᴇᴛʜʏꜱᴛ ᴋᴇʏ` | `&#A303F91k Coins` | 1000 | `crate givekey %player% amethyst virtuell 1` |
| 14 | `&eɢᴏʟᴅ ᴋᴇʏ` | `&#A303F91k Coins` | 1000 | `crate givekey %player% gold virtuell 1` |
| 15 | `&eᴘʀɪᴍᴇ ᴋᴇʏ` | `&#A303F91k Coins` | 1000 | `crate givekey %player% prime virtuell 1` |

**Chat Colors sub-menu** — each grants a permission with `duplicate_check: true` (buy once), no `requires_previous_permission`, all 650 coins, lore `&#A303F9650 Coins`, no command (permission grant only). No glow on these.
| Slot | Material | Display name (exact) | Permission |
|---|---|---|---|
| 9 | PURPLE_DYE | `&5ᴘᴜʀᴘʟᴇ` | `ezcolors.color.purple` |
| 10 | RED_DYE | `&cʀᴇᴅ` | `ezcolors.color.red` |
| 11 | ORANGE_DYE | `&6ɢᴏʟᴅ` | `ezcolors.color.gold` |
| 12 | YELLOW_DYE | `&eʏᴇʟʟᴏᴡ` | `ezcolors.color.yellow` |
| 13 | LIME_DYE | `&aʟɪᴍᴇ` | `ezcolors.color.lime` |
| 14 | LIGHT_BLUE_DYE | `&3ᴀǫᴜᴀ` | `ezcolors.color.aqua` |
| 15 | BLUE_DYE | `&1ʙʟᴜᴇ` | `ezcolors.color.blue` |
| 16 | PINK_DYE | `&dᴘɪɴᴋ` | `ezcolors.color.pink` |
| 17 | LIGHT_GRAY_DYE | `&7ɢʀᴀʏ` | `ezcolors.color.gray` |

**Home Slots sub-menu** — tiered ladder: each grants a permission with `duplicate_check: true`, and `requires_previous_permission` set to the prior tier's node (tier 1 has none). No command (permission grant only). Material `RED_BED` for all three, no glow.
| Slot | Display name (exact) | Lore | Price | Grants permission | Requires previous |
|---|---|---|---|---|---|
| 12 | `�ff00+1 ʜᴏᴍᴇ sʟᴏᴛ` | `&#A303F9300 Coins` | 300 | `home.limit.3` | — |
| 13 | `�ff00+2 ʜᴏᴍᴇ sʟᴏᴛs` | `&#A303F9600 Coins` | 600 | `home.limit.4` | `home.limit.3` |
| 14 | `�ff00+3 ʜᴏᴍᴇ sʟᴏᴛs` | `&#A303F91k Coins` | 1000 | `home.limit.5` | `home.limit.4` |

**Auction Slots sub-menu** — same tiered pattern. Material `WHITE_BANNER` for all five, no glow.
| Slot | Display name (exact) | Lore | Price | Grants permission | Requires previous |
|---|---|---|---|---|---|
| 11 | `�ff005 ᴀᴜᴄᴛɪᴏɴ sʟᴏᴛs` | `&#A303F9250 Coins` | 250 | `auction.limit.5` | — |
| 12 | `�ff0010 ᴀᴜᴄᴛɪᴏɴ sʟᴏᴛs` | `&#A303F9500 Coins` | 500 | `auction.limit.10` | `auction.limit.5` |
| 13 | `�ff0015 ᴀᴜᴄᴛɪᴏɴ sʟᴏᴛs` | `&#A303F91k Coins` | 1000 | `auction.limit.15` | `auction.limit.10` |
| 14 | `�ff0020 ᴀᴜᴄᴛɪᴏɴ sʟᴏᴛs` | `&#A303F91.5k Coins` | 1500 | `auction.limit.20` | `auction.limit.15` |
| 15 | `�ff0026 ᴀᴜᴄᴛɪᴏɴ sʟᴏᴛs` | `&#A303F92k Coins` | 2000 | `auction.limit.26` | `auction.limit.20` |

**Amethyst Tools sub-menu** — no `permission` on any item; infinitely repurchasable; all 500 coins, lore ends with `&#A303F9500 Coins` on every item. Each tool's full lore also documents its effect and a cosmetic "self-destruct"/durability countdown line — keep these as editable lore lines, not functional timers enforced by this plugin (the tools plugin behind the command owns actual item expiry):

- **Slot 9 — Amethyst Pickaxe** (`NETHERITE_PICKAXE`, display `&#A20AD6ᴀᴍᴇᴛʜʏsᴛ ᴘɪᴄᴋᴀxᴇ`)
  Lore: `&7Breaks 9 Blocks at Once`, `&8Self Destruct:`, `&82d 23h 59m`, ``, `&#A303F9500 Coins`
  Enchants (glow): `MENDING;1`, `EFFICIENCY;5`, `UNBREAKING;3` — Command: `tools give %player% drill`
- **Slot 10 — Amethyst Axe** (`NETHERITE_AXE`, display `&#A20AD6ᴀᴍᴇᴛʜʏsᴛ ᴀxᴇ`)
  Lore: `&7Breaks Trees instantly`, `&8Self Destruct:`, `&82d 23h 59m`, ``, `&#A303F9500 Coins`
  Enchants: `MENDING;1`, `SILK_TOUCH;1`, `EFFICIENCY;5`, `UNBREAKING;3` — Command: `tools give %player% treechopper`
- **Slot 11 — Amethyst Sell Axe** (`NETHERITE_AXE`, display `&#A20AD6ᴀᴍᴇᴛʜʏsᴛ sᴇʟʟ ᴀxᴇ`)
  Lore: `&7Instantly Sells All Items in A Chest`, `&8Self Destruct:`, `&82d 23h 59m`, ``, `&#A303F9500 Coins`
  Enchants: `MENDING;1`, `EFFICIENCY;5`, `UNBREAKING;3` — Command: `sellaxe %player%`
- **Slot 12 — Amethyst Shovel** (`NETHERITE_SHOVEL`, display `&#A20AD6ᴀᴍᴇᴛʏꜱᴛ ꜱʜᴏᴠᴇʟ`)
  Lore: `&7Breaks 9 Blocks at Once`, `&8Self Destruct:`, `&82d 23h 59m`, ``, `&#A303F9500 Coins`
  Enchants: `MENDING;1`, `EFFICIENCY;5`, `UNBREAKING;3` — Command: `tools give %player% shovel`
- **Slot 13 — Amethyst Hoe** (`NETHERITE_HOE`, display `&#A20AD6ᴀᴍᴇᴛʏꜱᴛ ʜᴏᴇ`)
  Lore: `&7Plants 9 Blocks at Once`, `&8Self Destruct:`, `&82d 23h 59m`, ``, `&#A303F9500 Coins`
  Enchants: `FORTUNE;3`, `EFFICIENCY;5`, `UNBREAKING;3` — Command: `tools give %player% hoe`
- **Slot 14 — Infinite Ender Pearl** (`ENDER_PEARL`, display `&#A20AD6ɪɴꜰɪɴɪᴛᴇ ᴇɴᴅᴇʀ ᴘeaʀʟ`)
  Lore: `&7Ender Pearl that never breaks`, `&8Self Destruct:`, `&83d 0h 0m`, ``, `&#A303F9500 Coins`
  Enchants (glow, hidden): `UNBREAKING;1` + `HIDE_ENCHANTS` — Command: `tools give %player% enderpearl time 3d`
- **Slot 15 — Infinity Rocket** (`FIREWORK_ROCKET`, display `&#A20AD6ɪɴꜰɪɴɪᴛʏ ʀᴏᴄᴋᴇᴛ`)
  Lore: `&7Boosts your Elytra flight`, `&8Durability:`, `&82d 23h 59m`, ``, `&#A303F9500 Coins`
  Enchants (glow, hidden): `UNBREAKING;1` + `HIDE_ENCHANTS` — Command: `tools give %player% rocket time 3d`
- **Slot 16 — Amethyst Lava Bucket** (`LAVA_BUCKET`, display `&#A20AD6ᴀᴍᴇᴛʜʏꜱᴛ ʟᴀᴠᴀ ʙᴜᴄᴋᴇᴛ`)
  Lore: `&7Infinite Lava Bucket`, `&8Durability:`, `&82d 23h 59m`, ``, `&#A303F9500 Coins`
  Enchants (glow, hidden): `UNBREAKING;1` + `HIDE_ENCHANTS` — Command: `tools give %player% lavabucket time 3d`
- **Slot 17 — Amethyst Water Bucket** (`WATER_BUCKET`, display `&#A20AD6ᴀᴍᴇᴛʜʏꜱᴛ ᴡᴀᴛᴇʀ ʙᴜᴄᴋᴇᴛ`)
  Lore: `&7Infinite Water Bucket`, `&8Durability:`, `&82d 23h 59m`, ``, `&#A303F9500 Coins`
  Enchants (glow, hidden): `UNBREAKING;1` + `HIDE_ENCHANTS` — Command: `tools give %player% waterbucket time 3d`

## 7. Data storage

- Player balances persist to a `playerdata/` folder inside the plugin's data folder — one file per player (UUID-named), not a shared database. Both currencies live in the same per-player file.
- Load on join/first access, cache in memory, save on quit and periodically/on shutdown.

## 8. Suggested file layout

```
EconomyCore/
  config.yml            # currencies, command aliases + permission nodes, colors, AFK world, thresholds
  passive-income.yml    # Section 4.1 and 4.2 settings + messages
  killshards.yml        # Section 5 settings + messages
  messages.yml          # shared/generic messages (balance lookups, admin command errors)
  gui/
    shardshop.yml
    coinshop.yml
    coinshop-cratekeys.yml
    coinshop-chatcolors.yml
    coinshop-homeslots.yml
    coinshop-auctionslots.yml
    coinshop-tools.yml
    confirm-purchase.yml   # single generic confirm template reused by every item
  playerdata/
    .yml
```
Kodari AI
KodariSep 24 at 2:55 am 1

The generation was stopped before any content could be produced.

Kodari can make mistakes. Review important code before using.
Files

No files in this session

Code