Sacrifixial

> "Create a DeluxeMenus configuration for a 'Kits' INVENTORY GUI. > Layout: > Use size: 5×9 (Starter, Claim, Daily, Weekly, Monthly) to look professional. > Kits & Logic: > 1. Starter: No time restriction only one time claimable. > 2. Claim: 12 hours cool down timer . > 3. Daily: Requires 24 hours since first join. > 4. Weekly: Requires 7 days since first join. > 5. Monthly: Requires 30 days since first join. > Requirements: > Use PlaceholderAPI for the logic. > Restrictions: Use view_requirement so that kits are locked/hidden until the player meets the 'time since first join' requirement. > Lore Styling: In the item lore, include the cooldown/status. If the kit is ready, add a line: '➥ Click to claim this kit'. If it is on cooldown, show the remaining time using %essentials_kit_delay_<name>%. > Actions: Clicking the item must run /kit <name>. > Format: > Use appropriate player heads icons > * Ensure the ➥ symbol is used clearly for the interaction line."

Kodari AI
KodariJun 27 at 12:34 pm 14
KitsMenuDeluxe
A DeluxeMenus configuration for a professional 5×9 Kits GUI with five tiers: Starter (one-time claim), Claim (12h cooldown), Daily (unlocks after 24h since first join), Weekly (unlocks after 7 days), and Monthly (unlocks after 30 days). Uses PlaceholderAPI + Essentials for cooldown tracking and JavaScript expressions for time-since-first-join gating. Each kit shows dynamic lore — ready state with ➥ click prompt or cooldown remaining — via paired view_requirement items.

Here’s the full kits menu. Each kit uses two paired items at the same slot — one for the “ready” state, one for the “on cooldown / already claimed” state — controlled by view_requirement. Daily, Weekly, and Monthly have an additional locked item that shows until the player meets the join-time threshold.

Slot layout:

Plain Text
[ ][ ][S][ ][C][ ][D][ ][ ]   ← row 1  (Starter=11, Claim=13, Daily=15)
[ ][ ][ ][ ][ ][ ][ ][ ][ ]   ← row 2  (decorative)
[ ][ ][W][ ][ ][ ][M][ ][ ]   ← row 3  (Weekly=29, Monthly=33)

📂 File placement

Plain Text
plugins/DeluxeMenus/gui_menus/KitsMenu.yml

Then in plugins/DeluxeMenus/config.yml, register it:

YAML
gui_menus:
  KitsMenu:
    file: KitsMenu.yml

🗺️ Visual slot map

Plain Text
╔═══╤═══╤═══╤═══╤═══╤═══╤═══╤═══╤═══╗
║ █ │ █ │ █ │ █ │ █ │ █ │ █ │ █ │ █ ║  row 0 — black border
╟───┼───┼───┼───┼───┼───┼───┼───┼───╢
║ █ │ ░ │[S]│ ░ │[C]│ ░ │[D]│ ░ │ █ ║  row 1 — Starter·Claim·Daily
╟───┼───┼───┼───┼───┼───┼───┼───┼───╢
║ █ │ ░ │ ░ │ ░ │ ░ │ ░ │ ░ │ ░ │ █ ║  row 2 — decorative
╟───┼───┼───┼───┼───┼───┼───┼───┼───╢
║ █ │ ░ │[W]│ ░ │ ░ │ ░ │[M]│ ░ │ █ ║  row 3 — Weekly·Monthly
╟───┼───┼───┼───┼───┼───┼───┼───┼───╢
║ █ │ █ │ █ │ █ │ █ │ █ │ █ │ █ │ █ ║  row 4 — black border
╚═══╧═══╧═══╧═══╧═══╧═══╧═══╧═══╧═══╝
  █ = BLACK glass   ░ = GRAY glass

⚙️ How the logic works

Kit
Threshold (ms)
Paired items
Mechanism
Starter
none
_available
/
_claimed
%essentials_kit_is_available_starter%
==
"true"
Claim
none
_available
/
_cooldown
same, 12h Essentials cooldown
Daily
86,400,000
_locked
/
_available
/
_cooldown
JS:
Date.getTime() - %player_first_played%
Weekly
604,800,000
same pattern
7 × 86,400,000
Monthly
2,592,000,000
same pattern
30 × 86,400,000

Note: %player_first_played% returns the Unix epoch millisecond timestamp of the player’s very first join, provided by PlaceholderAPI’s built-in player expansion — no extra expansion needed.

Kodari can make mistakes. Review important code before using.
Files
KitsMenu.yml
Code
1 473
KitsMenu.yml
# ══════════════════════════════════════════════════════════════
#  KitsMenu.yml  —  DeluxeMenus Configuration
#  Requires: DeluxeMenus, PlaceholderAPI, Essentials (EssentialsX)
#
#  Placeholders used:
#    %essentials_kit_is_available_<name>%  →  "true" / "false"
#    %essentials_kit_delay_<name>%         →  remaining cooldown string
#    %player_first_played%                 →  Unix ms timestamp of first join
#
#  Place this file in:
#    plugins/DeluxeMenus/gui_menus/KitsMenu.yml
#  Then register it in plugins/DeluxeMenus/config.yml:
#    gui_menus:
#      KitsMenu:
#        file: KitsMenu.yml
# ══════════════════════════════════════════════════════════════

menu_title: '&8⚔ &6&lK I T S &8⚔'
open_command: kits
size: 45
update_interval: 20

# ─── Decorative filler ────────────────────────────────────────
items:
  filler_black:
    material: BLACK_STAINED_GLASS_PANE
    display_name: ' '
    slots:
      - 0
      - 1
      - 2
      - 3
      - 4
      - 5
      - 6
      - 7
      - 8
      - 9
      - 17
      - 18
      - 26
      - 27
      - 35
      - 36
      - 37
      - 38
      - 39
      - 40
      - 41
      - 42
      - 43
      - 44

  filler_gray:
    material: GRAY_STAINED_GLASS_PANE
    display_name: ' '
    slots:
      - 10
      - 12
      - 14
      - 16
      - 19
      - 20
      - 21
      - 22
      - 23
      - 24
      - 25
      - 28
      - 30
      - 31
      - 32
      - 34

# ══════════════════════════════════════════════════════════════
#  STARTER KIT  —  Slot 11
#  One-time claimable. No time restriction.
#  After claiming, Essentials sets it permanently unavailable.
# ══════════════════════════════════════════════════════════════

  starter_available:
    material: PLAYER_HEAD
    # Classic Steve gold/yellow head feel — Steve texture as fallback
    skull_texture: eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNjFlZDZlZDJmMGM4NzJlNjE0YTc0ZTZkMjhlMzEzYmVhMGZlYmY0ZWExMDI2YThkZDcwMzI3ZTViNGNiYiJ9fX0=
    slot: 11
    display_name: '&6&lStarter Kit'
    lore:
      - '&8━━━━━━━━━━━━━━━━━━━━━━━━'
      - ' &7A one-time welcome gift for'
      - ' &7all new players.'
      - ''
      - ' &7Contains:'
      - '  &8▸ &eBasic tools & armor'
      - '  &8▸ &eStarter resources'
      - '  &8▸ &eFood supplies'
      - ''
      - ' &7Cooldown: &aOne-time only'
      - ' &7Status:   &a&lAVAILABLE'
      - ''
      - ' &e➥ Click to claim this kit'
      - '&8━━━━━━━━━━━━━━━━━━━━━━━━'
    view_requirement:
      requirements:
        is_available:
          type: '=='
          input: '%essentials_kit_is_available_starter%'
          output: 'true'
    left_click_commands:
      - '[player] kit starter'
    right_click_commands:
      - '[player] kit starter'

  starter_claimed:
    material: PLAYER_HEAD
    skull_texture: eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNjFlZDZlZDJmMGM4NzJlNjE0YTc0ZTZkMjhlMzEzYmVhMGZlYmY0ZWEMTAyNmE4ZGQ3MDMyN2U1YjRjYmIifX19
    slot: 11
    display_name: '&6&lStarter Kit'
    lore:
      - '&8━━━━━━━━━━━━━━━━━━━━━━━━'
      - ' &7A one-time welcome gift for'
      - ' &7all new players.'
      - ''
      - ' &7Contains:'
      - '  &8▸ &eBasic tools & armor'
      - '  &8▸ &eStarter resources'
      - '  &8▸ &eFood supplies'
      - ''
      - ' &7Cooldown: &aOne-time only'
      - ' &7Status:   &c&lALREADY CLAIMED'
      - ''
      - ' &c✘ You have already claimed'
      - ' &c  this kit.'
      - '&8━━━━━━━━━━━━━━━━━━━━━━━━'
    view_requirement:
      requirements:
        is_claimed:
          type: '!='
          input: '%essentials_kit_is_available_starter%'
          output: 'true'

# ══════════════════════════════════════════════════════════════
#  CLAIM KIT  —  Slot 13
#  12-hour cooldown. No join-time restriction.
# ══════════════════════════════════════════════════════════════

  claim_available:
    material: PLAYER_HEAD
    skull_texture: eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYTkwNzkwYzU3ZTgxNzI2NjMxNGJjNGFlYWZhNGI4ZjNhNWFhNWZiNDU1NTNlM2YyMzM5MjM4YzE4MDM5NCJ9fX0=
    slot: 13
    display_name: '&b&lClaim Kit'
    lore:
      - '&8━━━━━━━━━━━━━━━━━━━━━━━━'
      - ' &7A regular kit claimable every'
      - ' &712 hours.'
      - ''
      - ' &7Contains:'
      - '  &8▸ &bConsumables & food'
      - '  &8▸ &bExperience bottles'
      - '  &8▸ &bUseful miscellaneous items'
      - ''
      - ' &7Cooldown: &b12 hours'
      - ' &7Status:   &a&lAVAILABLE'
      - ''
      - ' &e➥ Click to claim this kit'
      - '&8━━━━━━━━━━━━━━━━━━━━━━━━'
    view_requirement:
      requirements:
        is_available:
          type: '=='
          input: '%essentials_kit_is_available_claim%'
          output: 'true'
    left_click_commands:
      - '[player] kit claim'
    right_click_commands:
      - '[player] kit claim'

  claim_cooldown:
    material: PLAYER_HEAD
    skull_texture: eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYTkwNzkwYzU3ZTgxNzI2NjMxNGJjNGFlYWZhNGI4ZjNhNWFhNWZiNDU1NTNlM2YyMzM5MjM4YzE4MDM5NCJ9fX0=
    slot: 13
    display_name: '&b&lClaim Kit'
    lore:
      - '&8━━━━━━━━━━━━━━━━━━━━━━━━'
      - ' &7A regular kit claimable every'
      - ' &712 hours.'
      - ''
      - ' &7Contains:'
      - '  &8▸ &bConsumables & food'
      - '  &8▸ &bExperience bottles'
      - '  &8▸ &bUseful miscellaneous items'
      - ''
      - ' &7Cooldown:  &b12 hours'
      - ' &7Remaining: &c%essentials_kit_delay_claim%'
      - ''
      - ' &c⏳ Kit is on cooldown.'
      - '&8━━━━━━━━━━━━━━━━━━━━━━━━'
    view_requirement:
      requirements:
        is_cooldown:
          type: '!='