RedeemCode
RedeemCode is a lightweight redeem code system built with Skript and skript-reflect. It allows server administrators to create, manage, and distribute redeem codes entirely in-game through an intuitive GUI.Players can redeem codes using a simple command, while administrators can configure multiple rewards, set expiration dates, edit codes, and manage everything without manually editing files.
Features
- Easy-to-use in-game administration GUI
- Create unlimited redeem codes
- Edit existing redeem codes
- Support for multiple reward commands per code
- Automatic {player} placeholder replacement
- Expiration date support
- Permanent redeem codes
- Delete codes directly from the GUI
- Configurable messages and GUI text
- Reload configuration without restarting the server
- Prevent duplicate code claims
Reward Commands
Each code can execute one or multiple commands when redeemed.Examples:
give {player} diamond 1
eco give {player} 100
lp user {player} permission set vip true
crate key give {player} vote 1
The {player} placeholder is automatically replaced with the player's username.
Admin GUI
The built-in administration GUI allows you to:- Create new redeem codes
- Edit existing codes
- Configure reward commands
- Remove reward commands
- Set expiration dates
- View all available codes
- Delete codes
Expiration System
Redeem codes can be configured as:- Permanent codes (never expire)
- Time-limited codes with a specific expiration date
Installation
- Place redeemcode.sk into: plugins/Skript/scripts/
- Ensure the following plugins are installed:
- Skript
- skript-reflect
- Reload the script: /skript reload redeemcode.sk
Configuration
Messages, GUI text, permissions, and other settings can be edited in:plugins/cuja-RedeemCode/config.yml
After editing the configuration, reload it with:
/rcreload
Commands
/redeem
Redeem a code and receive its rewards.Permission: redeem.use
Example:
/redeem WELCOME2025
/rcadmin
Open the RedeemCode administration GUI.Permission: redeem.admin
/rcreload
Reload configuration and GUI messages.Permission: redeem.admin
How To Create A Redeem Code
- Run /rcadmin
- Click Create New Code
- Enter a code name in chat
- Open the created code
- Configure reward commands
- Set an expiration date (optional)
- Save and distribute the code to players
How Players Redeem Codes
- Obtain a redeem code from the server.
- Run: /redeem <code>
- If the code is valid and has not expired, all configured rewards will be executed automatically.
Example Use Cases
- Server launch rewards
- Seasonal events
- Community milestones
- Giveaway rewards
- Limited-time promotions
Screenshots
Main Admin GUICode Management Menu
Reward Configuration Menu
Expiration Settings
Note: Commands should be entered without a leading /. The {player} placeholder will automatically be replaced with the player's username when rewards are executed.
