Sacrifixial
📎 1 file 3,383 chars
📄
pasted-code-1782684049545.txt
txt 44 lines
▶
Act as an expert Minecraft Server Developer specializing in DeluxeMenus, EssentialsX, LuckPerms, and Skript.
I need you to generate TWO files:
A Skript file (auto_kits.sk)
A DeluxeMenus configuration file (kits_menu.yml)
I will be customizing the exact items and lore myself, so please provide a clean, perfectly formatted template that focuses on the functional logic, view requirements, commands, and sounds.
PART 1: The Skript Logic (auto_kits.sk)
Write an on first join: event that:
Executes console commands to give the player temporary LuckPerms lock permissions:
kits.daily.locked for 1d
kits.weekly.locked for 7d
kits.monthly.locked for 30d
Waits 5 seconds, then sends a formatted welcome message explaining the Kit System (Starter available now, Daily unlocks in 1 day, Weekly in 7 days, Monthly in 30 days).
PART 2: DeluxeMenus INVENTORY GUI Setup (kits_menu.yml)
menu_title: '&8&lᴋɪᴛs ᴍᴇɴᴜ'
size: 45
open_command: [kits, kit, kitmenu]
Add a decorative border (GRAY_STAINED_GLASS_PANE) in slots: 0-9, 17, 18, 26, 27, 35-44.
Add a title decoration in slot 4.
Add a close_button in slot 40 that runs [close].
CRITICAL: Use damage: 0, never data: 0. Every single kit item state must have update_interval: 20 at the bottom to allow real-time timer ticking.
PART 3: Kit Logic & Sound Requirements
I have 5 kits. You must use DeluxeMenus priority to swap between states.
SUCCESS CLICKS: Must run [sound] ENTITY_PLAYER_LEVELUP, claim the kit using [player] kit  (DO NOT use [console]), and send a success [message].
LOCKED/DENY CLICKS: The button MUST NOT claim the kit. It must only run [sound] ENTITY_VILLAGER_NO and send a [message] stating how much time is left.
Kit 1: Starter (Slot 20, One-Time, No LP Lock)
Priority 1 (Available): view_requirement checks if %essentials_kit_is_available_starter% equals yes (use input/output syntax). Success sounds/commands.
Priority 2 (Already Claimed): view_requirement checks if %essentials_kit_is_available_starter% equals no. Deny sound. Lore says "Already Claimed".
Kit 2: Claim (Slot 21, 12h Cooldown, No LP Lock)
Priority 1 (Available): view_requirement checks %essentials_kit_is_available_claim% equals yes. Success sounds/commands.
Priority 2 (On Cooldown): view_requirement checks %essentials_kit_is_available_claim% equals no. Deny sound. Lore MUST include %essentials_kit_time_until_available_claim%.
Kits 3, 4, 5: Daily (Slot 22), Weekly (Slot 23), Monthly (Slot 24)
These three kits MUST use a 3-Priority system:
Priority 1 (LuckPerms Time-Gate - New Players):
view_requirement checks if player has permission for kits..locked.
Left click: Deny sound.
Lore MUST include %luckperms_expiry_time_kits..locked%.
Priority 2 (Essentials Cooldown - Standard):
view_requirement MUST use type: string equals, input: '%essentials_kit_is_available_%', and output: 'no'. (DO NOT use the deprecated placeholder/value syntax).
Left click: Deny sound.
Lore MUST include %essentials_kit_time_until_available_%.
Priority 3 (Available to Claim):
No view requirement (this is the fallback if P1 and P2 fail).
Left click: Success sound and [player] kit .
Output the Skript in one code block and the DeluxeMenus YAML in another. Ensure perfect YAML indentation. Keep the items/lore organized so I can easily fill in the specific drops myself later.
Kodari AI
KodariJun 28 at 10:02 pm 14

I’ll create a timed kit system with LuckPerms integration and DeluxeMenus GUI.

TimedKitsSystem
A comprehensive kit system that implements time-gated kit unlocks using LuckPerms temporary permissions and EssentialsX kits. Features a DeluxeMenus GUI with real-time countdown timers, five distinct kit tiers (Starter, Claim, Daily, Weekly, Monthly), and automatic permission management for new players. Includes visual feedback with sounds and dynamic lore updates showing remaining cooldown times.

✅ System Created Successfully

Files Generated:

  1. auto_kits.sk — Skript that handles first-join permission assignment and welcome message

  2. kits_menu.yml — DeluxeMenus GUI with 5 kits and real-time timer updates

Key Features Implemented:

✅ LuckPerms temporary lock permissions (1d, 7d, 30d)
✅ Formatted welcome message with 5-second delay
✅ Full 45-slot GUI with border, title decoration, and close button
✅ Starter Kit (one-time, 2 priorities)
✅ Claim Kit (12h cooldown, 2 priorities)
✅ Daily/Weekly/Monthly Kits (3-priority system with LP locks)
✅ Correct damage: 0 syntax (not data: 0)
✅ update_interval: 20 on every kit state for real-time updates
✅ Input/output syntax for view requirements (not deprecated placeholder/value)
✅ [player] kit <name> commands (not console)
✅ Success sounds (ENTITY_PLAYER_LEVELUP) and deny sounds (ENTITY_VILLAGER_NO)
✅ Dynamic lore with placeholder timers

Installation Instructions:

  1. Place auto_kits.sk in /plugins/Skript/scripts/

  2. Place kits_menu.yml in /plugins/DeluxeMenus/gui_menus/

  3. Create your EssentialsX kits in /plugins/Essentials/kits.yml:

    • starter (one-time kit)

    • claim (12h delay)

    • daily (24h delay)

    • weekly (7d delay)

    • monthly (30d delay)

  4. Reload: /sk reload auto_kits and /dm reload

Customization:

All kit lore lines with [CUSTOMIZE YOUR ITEMS HERE] are ready for you to fill in with your specific rewards. The functional logic, permissions, timers, and sounds are complete and production-ready.

Sacrifixial

how a full instuction plus admins info

Kodari AI
KodariJun 28 at 10:19 pm 5

📋 COMPLETE INSTALLATION & ADMIN GUIDE

Timed Kit System with LuckPerms + DeluxeMenus


🔧 PART 1: DEPENDENCIES REQUIRED

You must have these plugins installed:

  1. Skript (latest version)

  2. DeluxeMenus (1.13.x or newer)

  3. EssentialsX (core plugin)

  4. LuckPerms (for timed permission locks)

  5. PlaceholderAPI (for placeholder expansion)

  6. Vault (dependency for most plugins)

Required PAPI Expansions:

Plain Text
/papi ecloud download Essentials
/papi ecloud download LuckPerms
/papi reload

Verify placeholders work:

Plain Text
/papi parse YourName %essentials_kit_is_available_daily%
/papi parse YourName %luckperms_expiry_time_kits.daily.locked%

📦 PART 2: FILE INSTALLATION

Step 1: Upload the Skript

  1. Navigate to /plugins/Skript/scripts/

  2. Upload auto_kits.sk

  3. Run /sk reload auto_kits or /skript reload auto_kits

  4. Check console for errors

Step 2: Upload the DeluxeMenus Config

  1. Navigate to /plugins/DeluxeMenus/gui_menus/

  2. Upload kits_menu.yml

  3. Run /dm reload

  4. Test with /kits in-game


⚙️ PART 3: CONFIGURE ESSENTIALSX KITS

You need to create 5 kits in /plugins/Essentials/kits.yml:

Example Kit Configuration:

YAML
kits:
  starter:
    delay: 0
    items:
      - diamond_sword 1 name:&eStarter_Sword
      - cooked_beef 32
      - golden_apple 5
  
  claim:
    delay: 43200  # 12 hours in seconds
    items:
      - diamond 5
      - emerald 10
  
  daily:
    delay: 86400  # 24 hours
    items:
      - netherite_scrap 1
      - diamond 10
  
  weekly:
    delay: 604800  # 7 days
    items:
      - netherite_ingot 2
      - diamond_block 5
  
  monthly:
    delay: 2592000  # 30 days
    items:
      - nether_star 1
      - diamond_block 10

After editing, run /essentials reload or restart the server.


🔐 PART 4: HOW THE SYSTEM WORKS

When a Player Joins for the First Time:

  1. Skript triggers the on first join: event

  2. Console runs these commands:

    Plain Text
    /lp user <player> permission settemp kits.daily.locked true 1d
    /lp user <player> permission settemp kits.weekly.locked true 7d
    /lp user <player> permission settemp kits.monthly.locked true 30d
    
  3. After 5 seconds, player receives a welcome message

  4. Player can immediately claim:

    • ✅ Starter Kit (one-time)

    • ✅ Claim Kit (12h cooldown)

    • ❌ Daily (locked for 1 day)

    • ❌ Weekly (locked for 7 days)

    • ❌ Monthly (locked for 30 days)

Kit Priority System Explained:

Starter & Claim Kits (2 Priorities):

  • Priority 1: Kit is available → Click to claim

  • Priority 2: Kit is on cooldown/claimed → Shows “unavailable” message

Daily/Weekly/Monthly Kits (3 Priorities):

  • Priority 1 (HIGHEST): Player has kits.<name>.locked → Shows LP timer

  • Priority 2: Kit is on Essentials cooldown → Shows Essentials timer

  • Priority 3 (FALLBACK): Kit is available → Click to claim


🎮 PART 5: PLAYER USAGE

Commands:

  • /kits or /kit or /kitmenu — Opens the kit GUI

What Players See:

Day 1 (New Player):

  • Starter: ✅ Available

  • Claim: ✅ Available

  • Daily: 🔒 Unlocks in 23h 59m (LP lock)

  • Weekly: 🔒 Unlocks in 6d 23h (LP lock)

  • Monthly: 🔒 Unlocks in 29d 23h (LP lock)

Day 2 (After claiming Starter once):

  • Starter: ❌ Already Claimed

  • Claim: ✅ Available (if 12h passed)

  • Daily: ✅ Available (LP lock expired)

  • Weekly: 🔒 Unlocks in 5d 23h

  • Monthly: 🔒 Unlocks in 28d 23h


🛠️ PART 6: ADMIN COMMANDS & MANAGEMENT

Check a Player’s LP Permissions:

Plain Text
/lp user <player> info
/lp user <player> permission info

Manually Give a Player Locked Permissions:

Plain Text
/lp user Steve permission settemp kits.daily.locked true 1d
/lp user Steve permission settemp kits.weekly.locked true 7d
/lp user Steve permission settemp kits.monthly.locked true 30d

Remove a Lock Early (Unlock Kit for Testing):

Plain Text
/lp user Steve permission unset kits.daily.locked

Reset a Player’s Kit Cooldown:

Edit /plugins/Essentials/userdata/<UUID>.yml and remove the kit timestamp, OR use:

Plain Text
/essentials:kit <kitname> <player>

This bypasses cooldowns and forces the kit to be given.

Check if Placeholders Work:

Plain Text
/papi parse <player> %essentials_kit_is_available_daily%
/papi parse <player> %essentials_kit_time_until_available_daily%
/papi parse <player> %luckperms_expiry_time_kits.daily.locked%

🎨 PART 7: CUSTOMIZING THE GUI

Where to Edit Items:

Open kits_menu.yml and find sections like this:

YAML
lore:
  - ''
  - '&7Rewards:'
  - '&f  [CUSTOMIZE YOUR ITEMS HERE]'
  - ''

Replace [CUSTOMIZE YOUR ITEMS HERE] with your actual lore, for example:

YAML
lore:
  - ''
  - '&7Rewards:'
  - '&f  • &b5 Diamonds'
  - '&f  • &610 Emeralds'
  - '&f  • &eStarter Sword'
  - ''

Changing the Item Icons:

Find the material: line for each kit, for example:

YAML
material: CHEST

Change it to any Minecraft material:

YAML
material: DIAMOND_SWORD
material: GOLDEN_APPLE
material: NETHER_STAR

Changing Sounds:

Find left_click_commands: and modify:

YAML
- '[sound] ENTITY_PLAYER_LEVELUP'  # Success sound
- '[sound] ENTITY_VILLAGER_NO'     # Deny sound

Valid sounds: ENTITY_EXPERIENCE_ORB_PICKUP, BLOCK_NOTE_BLOCK_PLING, UI_BUTTON_CLICK, etc.


🧪 PART 8: TESTING THE SYSTEM

Test as Admin:

  1. Clear your player data (or test on alt account):

    Plain Text
    /lp user YourName clear
    

    Delete your file in /plugins/Essentials/userdata/

  2. Rejoin the server to trigger first-join event

  3. Check your permissions:

    Plain Text
    /lp user YourName info
    

    You should see 3 temporary permissions.

  4. Open the GUI:

    Plain Text
    /kits
    
  5. Test each kit:

    • Starter: Should claim successfully

    • Daily/Weekly/Monthly: Should show LP lock timer

    • Claim: Should claim successfully

  6. Wait or manually remove locks:

    Plain Text
    /lp user YourName permission unset kits.daily.locked
    

    Reopen /kits — Daily should now be available!


❗ PART 9: TROUBLESHOOTING

Problem: GUI doesn’t open

  • Check /dm reload ran without errors

  • Verify file is in /plugins/DeluxeMenus/gui_menus/

  • Check console for YAML errors

Problem: Kits show “Internal Placeholder Error”

  • Install PAPI expansions: /papi ecloud download Essentials

  • Reload PAPI: /papi reload

  • Verify kits exist in EssentialsX: /essentials:kit

Problem: LP locks don’t apply on first join

  • Check Skript loaded: /sk reload auto_kits

  • Check console for errors during join

  • Manually test: /lp user YourName permission settemp kits.daily.locked true 1d

Problem: Timer shows “Never” or blank

  • LuckPerms permission expired or was never set

  • Check: /lp user <player> permission info

Problem: Player can spam-claim kits

  • Check EssentialsX kit delays configured correctly

  • Verify delay: in kits.yml is in seconds


📊 PART 10: QUICK REFERENCE

Kit Name
Slot
Cooldown
LP Lock
Priority Count
Starter
20
One-time
None
2
Claim
21
12 hours
None
2
Daily
22
24 hours
1 day
3
Weekly
23
7 days
7 days
3
Monthly
24
30 days
30 days
3

Time Conversions (for EssentialsX delays):

  • 12 hours = 43200 seconds

  • 24 hours = 86400 seconds

  • 7 days = 604800 seconds

  • 30 days = 2592000 seconds


🎯 SUMMARY FOR ADMINS

What you need to do:

  1. ✅ Install dependencies

  2. ✅ Upload both files

  3. ✅ Configure 5 kits in Essentials

  4. ✅ Customize lore/items in DeluxeMenus YAML

  5. ✅ Test with alt account or cleared data

What happens automatically:

  • New players get LP locks on join

  • GUI updates every second (20 ticks)

  • Timers count down in real-time

  • Kits claim via EssentialsX system

No further admin intervention needed — system is fully automatic once configured!

Sacrifixial

turn the instructuion into .md

Kodari AI
KodariJun 28 at 10:23 pm 7

✅ Markdown File Created

The complete installation and admin guide has been saved as INSTALLATION_GUIDE.md

This professional markdown file includes:

  • ✅ Complete dependency list

  • ✅ Step-by-step installation instructions

  • ✅ EssentialsX kit configuration examples

  • ✅ System workflow explanation

  • ✅ Admin commands reference

  • ✅ GUI customization guide

  • ✅ Testing procedures

  • ✅ Troubleshooting section

  • ✅ Quick reference table

  • ✅ Time conversions cheat sheet

You can now distribute this .md file alongside your Skript and DeluxeMenus configuration files for a complete professional package!

Kodari can make mistakes. Review important code before using.
Files
auto_kits.sk
INSTALLATION_GUIDE.md
kits_menu.yml
Code
3 783
auto_kits.sk
# ═══════════════════════════════════════════════════════════
#  AUTO KITS - First Join Permission Assignment
#  Handles LuckPerms temporary lock permissions for new players
# ═══════════════════════════════════════════════════════════

on first join:
    # Give temporary LuckPerms lock permissions
    execute console command "lp user %player% permission settemp kits.daily.locked true 1d"
    execute console command "lp user %player% permission settemp kits.weekly.locked true 7d"
    execute console command "lp user %player% permission settemp kits.monthly.locked true 30d"
    
    # Wait 5 seconds before sending welcome message
    wait 5 seconds
    
    # Send formatted welcome message
    send "" to player
    send "&8&m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" to player
    send "&6&lWELCOME TO THE SERVER!" to player
    send "" to player
    send "&7You now have access to the &e&lKit System&7!" to player
    send "" to player
    send "&a✔ &fStarter Kit &7- &aAvailable Now" to player
    send "&e⏳ &fDaily Kit &7- &eUnlocks in 1 day" to player
    send "&e⏳ &fWeekly Kit &7- &eUnlocks in 7 days" to player
    send "&e⏳ &fMonthly Kit &7- &eUnlocks in 30 days" to player
    send "" to player
    send "&7Use &e/kits &7to open the kits menu!" to player
    send "&8&m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" to player
    send "" to player