flatfusion

Write a Minecraft Skript (.sk) for a Starter Kit system designed for a Lobby server. The script must include the following features:

  1. Command: Create a command /claimkit that players can use.
  2. Kit Content: When executed, it should give the player a full set of Iron Armor (Helmet, Chestplate, Leggings, Boots), a full set of Iron Tools (Sword, Pickaxe, Axe, Shovel, Hoe), 1 Water Bucket, and 32 Bread.
  3. One-Time Limit: Ensure that each player can ONLY claim this kit once in their lifetime. Use the player's UUID ({_uuid}) to track this, so they cannot bypass it by changing their username.
  4. Configuration Options: Include an "options:" section at the top of the script so I can easily change the prefix, success message, already-claimed error message, and the amount of bread/food.
  5. Admin Command: Add a /resetkit <player> command (restricted to OP/Permission: op) to reset a specific player's claim status so they can take the kit again if needed.

Please provide clean, optimized, and well-commented Skript code.

Kodari AI
KodariJun 8 at 12:04 pm 5

I’ll create a Skript-based starter kit system for your lobby server.

LobbyStarterKitSkript
A one-time starter kit system for Minecraft lobby servers using Skript. Players can claim a starter kit containing iron armor, iron tools, water bucket, and bread using /claimkit. Each player can only claim once (tracked by UUID). Includes admin command /resetkit to reset player claim status. Fully configurable messages and kit contents via options section.

Starter Kit Skript Created!

Features Included: ✓ /claimkit - Players claim their one-time kit ✓ Complete Kit: Full iron armor + tools, 1 water bucket, 32 bread ✓ UUID Tracking - Bypass-proof (survives name changes) ✓ Configurable Options - Edit prefix, messages, and bread amount at the top ✓ /resetkit <player> - Admin command to reset claims (OP only)

Installation:

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

  2. Run /sk reload starterkit or restart the server

  3. Customize the options section at the top as needed

Customization: Edit the options: section to change:

  • prefix - Message prefix styling

  • Messages (success, error, admin messages)

  • bread-amount - Change from 32 to any amount

The kit data is stored permanently using {starterkit.claimed::<uuid>} variables, ensuring players can only claim once even after name changes or server restarts.

Kodari can make mistakes. Review important code before using.
Files
starterkit.sk
Code
1 84
starterkit.sk
# ================================
# Lobby Starter Kit System
# ================================
# Description: One-time starter kit system for lobby servers
# Commands: /claimkit, /resetkit <player>
# Author: Kodari
# Version: 1.0
# ================================

options:
	# Customizable Options - Edit these to your preference
	prefix: &8[&bStarterKit&8]
	success-message: &aYou have successfully claimed your starter kit!
	already-claimed-message: &cYou have already claimed your starter kit! This is a one-time only reward.
	not-claimed-message: &c{player} has not claimed the starter kit yet!
	reset-success-message: &aSuccessfully reset starter kit claim for {player}!
	no-permission-message: &cYou don't have permission to use this command!
	
	# Kit Contents - Adjust quantities here
	bread-amount: 32

# ================================
# Main Claim Command
# ================================
command /claimkit:
	description: Claim your one-time starter kit with iron gear and food
	trigger:
		# Get player's UUID for permanent tracking
		set {_uuid} to uuid of player
		
		# Check if player has already claimed the kit
		if {starterkit.claimed::%{_uuid}%} is set:
			send "{@prefix} {@already-claimed-message}" to player
			stop
		
		# Give Iron Armor Set (Full Protection)
		give 1 iron helmet to player
		give 1 iron chestplate to player
		give 1 iron leggings to player
		give 1 iron boots to player
		
		# Give Iron Tools Set (Complete Toolkit)
		give 1 iron sword to player
		give 1 iron pickaxe to player
		give 1 iron axe to player
		give 1 iron shovel to player
		give 1 iron hoe to player
		
		# Give Utility Items
		give 1 water bucket to player
		give {@bread-amount} bread to player
		
		# Mark player as having claimed the kit (permanent via UUID)
		set {starterkit.claimed::%{_uuid}%} to true
		
		# Send success message
		send "{@prefix} {@success-message}" to player

# ================================
# Admin Reset Command
# ================================
command /resetkit <offline player>:
	description: Reset a player's starter kit claim status (Admin Only)
	permission: op
	permission message: {@prefix} {@no-permission-message}
	trigger:
		# Get the target player
		set {_target} to arg-1
		set {_uuid} to uuid of {_target}
		
		# Check if the player has even claimed the kit
		if {starterkit.claimed::%{_uuid}%} is not set:
			send "{@prefix} {@not-claimed-message}" to player
			replace all "{player}" with "%{_target}%" in {_message}
			send {_message} to player
			stop
		
		# Delete the claim record
		delete {starterkit.claimed::%{_uuid}%}
		
		# Send confirmation message
		set {_successMsg} to "{@prefix} {@reset-success-message}"
		replace all "{player}" with "%{_target}%" in {_successMsg}
		send {_successMsg} to player