
ModsJava
Gift Codes
Redeemable reward codes with items, commands and Battle Pass rewards. One use per player, synced across your network
⬇ Download on ModrinthCodes
Create reward codes in-game and let players redeem them with /redeem <code>. Perfect for giveaways, events, social media rewards, compensation after downtime or welcome gifts.
✨ Features
- Item rewards. Hold any item and run
/code additem. Full NBT is kept, so enchantments, custom names, lore and custom items from other plugins all work. - Command rewards. Run any console command with a
%player%placeholder: crate keys, money, ranks, whatever your server uses. - Battle Pass rewards. If BattlePass is installed, codes can also give Battle Pass XP or the premium pass. These codes can only be redeemed while a season is running, and players never lose a code because of it.
- One use per player. Each player can redeem a code exactly once. On a network this is enforced by the database, so it's impossible to redeem a code twice on different servers, even at the same moment.
- Usage limits. Optionally limit how often a code can be used in total, e.g. "first 50 players only".
- Network sync. Create or change a code on one server and every other server picks it up automatically within seconds. No
/code reloadon every server. - Safe. If a player disconnects while redeeming, the code is given back. Items that don't fit into the inventory are dropped at the player's feet. Code names are never shown in tab completion.
- Works without a database. Single servers can use local storage with zero setup.
📋 Commands
| Command | Description |
|---|---|
/redeem <code> |
Redeem a code |
/code create <name> |
Create a new code |
/code additem <name> |
Add the item in your hand as a reward |
/code addcmd <name> <command> |
Add a console command reward (%player%) |
/code bpxp <name> <amount> |
Battle Pass XP reward (needs BattlePass) |
/code bppremium <name> <true|false> |
Grant the premium Battle Pass (needs BattlePass) |
/code list · /code info <name> |
Inspect codes |
/code delete <name> |
Delete a code |
/code reload |
Reload the config |
🔑 Permissions
| Permission | Default | Description |
|---|---|---|
codes.redeem |
everyone | Redeem codes |
codes.admin |
op | Manage codes |
⚙️ Requirements
- Paper (or forks like Purpur) 1.21 – 26.2
- Java 21 (1.21.x) / Java 25 (26.x)
- Optional: MySQL/MariaDB for networks, BattlePass for Battle Pass rewards
🚀 Quick start
- Drop the jar into
plugins/and restart. - For a network, set
storage.type: mysqlinconfig.ymland point all servers at the same database. For a single server, uselocal. /code create summer→/code additem summer→ players run/redeem summer.
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.21, 1.21.1, 1.21.2
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Modrinth — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
Gift Codes is a free Minecraft Java mod. Compatible with Minecraft 1.21, 1.21.1, 1.21.2, 1.21.3 and newer. Downloaded 3 times (via Modrinth). Download it and open it directly in the game.