📄
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.
I’ll create a timed kit system with LuckPerms integration and DeluxeMenus GUI.
✅ System Created Successfully
Files Generated:
auto_kits.sk— Skript that handles first-join permission assignment and welcome messagekits_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:
Place
auto_kits.skin/plugins/Skript/scripts/Place
kits_menu.ymlin/plugins/DeluxeMenus/gui_menus/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)
Reload:
/sk reload auto_kitsand/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.
how a full instuction plus admins info
📋 COMPLETE INSTALLATION & ADMIN GUIDE
Timed Kit System with LuckPerms + DeluxeMenus
🔧 PART 1: DEPENDENCIES REQUIRED
You must have these plugins installed:
Skript (latest version)
DeluxeMenus (1.13.x or newer)
EssentialsX (core plugin)
LuckPerms (for timed permission locks)
PlaceholderAPI (for placeholder expansion)
Vault (dependency for most plugins)
Required PAPI Expansions:
/papi ecloud download Essentials
/papi ecloud download LuckPerms
/papi reload
Verify placeholders work:
/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
Navigate to
/plugins/Skript/scripts/Upload
auto_kits.skRun
/sk reload auto_kitsor/skript reload auto_kitsCheck console for errors
Step 2: Upload the DeluxeMenus Config
Navigate to
/plugins/DeluxeMenus/gui_menus/Upload
kits_menu.ymlRun
/dm reloadTest with
/kitsin-game
⚙️ PART 3: CONFIGURE ESSENTIALSX KITS
You need to create 5 kits in /plugins/Essentials/kits.yml:
Example Kit Configuration:
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:
Skript triggers the
on first join:eventConsole 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 30dAfter 5 seconds, player receives a welcome message
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 timerPriority 2: Kit is on Essentials cooldown → Shows Essentials timer
Priority 3 (FALLBACK): Kit is available → Click to claim
🎮 PART 5: PLAYER USAGE
Commands:
/kitsor/kitor/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:
/lp user <player> info
/lp user <player> permission info
Manually Give a Player Locked Permissions:
/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):
/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:
/essentials:kit <kitname> <player>
This bypasses cooldowns and forces the kit to be given.
Check if Placeholders Work:
/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:
lore:
- ''
- '&7Rewards:'
- '&f [CUSTOMIZE YOUR ITEMS HERE]'
- ''
Replace [CUSTOMIZE YOUR ITEMS HERE] with your actual lore, for example:
lore:
- ''
- '&7Rewards:'
- '&f • &b5 Diamonds'
- '&f • &610 Emeralds'
- '&f • &eStarter Sword'
- ''
Changing the Item Icons:
Find the material: line for each kit, for example:
material: CHEST
Change it to any Minecraft material:
material: DIAMOND_SWORD
material: GOLDEN_APPLE
material: NETHER_STAR
Changing Sounds:
Find left_click_commands: and modify:
- '[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:
Clear your player data (or test on alt account):
Plain Text/lp user YourName clearDelete your file in
/plugins/Essentials/userdata/Rejoin the server to trigger first-join event
Check your permissions:
Plain Text/lp user YourName infoYou should see 3 temporary permissions.
Open the GUI:
Plain Text/kitsTest each kit:
Starter: Should claim successfully
Daily/Weekly/Monthly: Should show LP lock timer
Claim: Should claim successfully
Wait or manually remove locks:
Plain Text/lp user YourName permission unset kits.daily.lockedReopen
/kits— Daily should now be available!
❗ PART 9: TROUBLESHOOTING
Problem: GUI doesn’t open
Check
/dm reloadran without errorsVerify file is in
/plugins/DeluxeMenus/gui_menus/Check console for YAML errors
Problem: Kits show “Internal Placeholder Error”
Install PAPI expansions:
/papi ecloud download EssentialsReload PAPI:
/papi reloadVerify kits exist in EssentialsX:
/essentials:kit
Problem: LP locks don’t apply on first join
Check Skript loaded:
/sk reload auto_kitsCheck 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 =
43200seconds24 hours =
86400seconds7 days =
604800seconds30 days =
2592000seconds
🎯 SUMMARY FOR ADMINS
What you need to do:
✅ Install dependencies
✅ Upload both files
✅ Configure 5 kits in Essentials
✅ Customize lore/items in DeluxeMenus YAML
✅ 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!
turn the instructuion into .md
✅ 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!
# ═══════════════════════════════════════════════════════════
# 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