Dupe System Documentation
Installation & Setup
- Download the script file and place it in your /plugins/Skript/scripts/ folder
- Restart your server or use /sk reload <filename> to load the script
- Configure the options at the top of the script to match your server branding
Commands
Player Commands
- /dupe - Duplicates the item you're currently holding
- Requirements: Must have dupe tokens, must be holding a dupe-able item
- Usage: Simply hold an item and type /dupe
Admin Commands
- /token add [player] [amount] - Give dupe tokens to a player
- Permission: SERVER.addtokens
- Example: /token add Steve 5
- /token remove [player] [amount] - Remove dupe tokens from a player
- Permission: SERVER.removetokens
- Example: /token remove Steve 2
Adding Non-Dupeable Items
To prevent certain items from being duplicated, edit the on load section:
on load:
cantDupe(golden apple)
cantDupe(enchanted golden apple)
cantDupe(diamond)
cantDupe(netherite ingot)
How It Works
- Token System: Players need dupe tokens to duplicate items
- Item Restrictions: Certain items are blacklisted from duplication
- Player Data: Each player's token count is stored using their UUID
- Auto-Setup: New players automatically get 0 tokens on first join
Common Issues
"You do not have any dupe tokens"
- Player needs tokens from an admin using /token add
"This item cannot be duped"
- Item is in the restricted list, check the cantDupe entries
"You must be holding an item to dupe"
- Player needs to hold the item they want to duplicate
Permissions
- SERVER.addtokens - Allows adding tokens to players
- SERVER.removetokens - Allows removing tokens from players
- No permission required for /dupe command (controlled by token system)
Data Storage
Player data is stored in Skript's variable system using UUID format:
- {data::%uuid of player%::dupes::tokens} - Stores each player's token count
- {cantdupe::*} - List of items that cannot be duplicated