RedpixCC - 高级代码兑换系统
一个完整且专业的 Minecraft Folia/Paper 服务器代码系统,允许管理员创建一个灵活的、可兑换代码的奖励系统。
? 主要功能
代码管理
- 创建代码:授权玩家可创建随机 5 位数字代码
- 一次性兑换:每个代码每位玩家仅能兑换一次
- 自动过期:代码在 7 天后自动过期
- 权限系统:只有经管理员授权的玩家才能创建代码
奖励系统
- 灵活奖励:可配置任何物品作为奖励
- 基于概率:每个奖励都有独立的概率(1-100%)
- 随机选择:玩家在兑换时会获得 3 个随机奖励
- 加权分布:概率越高的物品出现频率越高
直观 GUI
- 代码管理 GUI:清晰展示所有授权玩家的信息
- 奖励 GUI:轻松添加、编辑和移除奖励
- 拖放操作:只需将物品拖入 GUI 即可添加奖励
- 实时编辑:直接在 GUI 中调整概率
? 命令
管理员命令 (/code)
/code allowcode <Player> - 授予创建代码的权限
/code remove <Player> - 撤销创建代码的权限
/code check <Player> - 查看某玩家的所有代码及统计信息
/code delete <Player> - 永久删除某玩家的所有代码
/code gui - 打开管理 GUI
/code reload - 重新加载配置(无需重启服务器)
玩家命令
/mycode create - 创建一个新的可兑换代码(仅限授权玩家)
/vcode <Code> - 兑换代码并获得奖励
✨ 亮点
智能代码管理
- 自动清理过期代码
- 防止自我兑换(玩家无法兑换自己的代码)
- 追踪记录:谁兑换了哪个代码以及何时兑换
- 统计数据:查看每个代码的兑换次数
奖励 GUI 特性
- 右键点击:手动输入概率(1-100%)
- 中键点击 / Q 键:循环切换预设值(10% → 25% → 50% → 75% → 100%)
- Shift + 左键点击:移除奖励并返还至背包
- 持久化物品:奖励保存后不会消失
对玩家友好
- 清晰的颜色编码消息
- 有帮助性的错误提示
- 整洁的代码显示
- 成功兑换时的视觉确认
服务器性能
- 兼容 Folia:针对现代多线程服务器优化
- 高效的 YAML 数据存储
- 无需数据库
- 极低的服务器负载
? 使用场景
内容创作者 / YouTuber
为您的社区创建包含独家物品、资源或特殊奖励的代码。非常适合用于抽奖活动!
事件服务器
在活动分发代码,参与者可以兑换奖品。
网络服务器
通过成就、调查参与或补偿等方式,用特殊代码奖励玩家。
营销 / 推广
通过社交媒体、Discord 或其他平台分发代码,以吸引新玩家。
? 技术细节
- Minecraft 版本:1.21.4
- 服务器软件:Folia
- API 版本:1.21
- Java 版本:21
- 依赖项:无(独立运行)
? 安装步骤
- 下载
RedpixCC.jar
- 将 JAR 文件复制到服务器的
plugins/ 文件夹
- 重启服务器
- 通过
/code gui 配置奖励
- 使用
/code allowcode <Name> 授予权限
?️ 安全性
- 防止重复代码
- 阻止同一玩家多次兑换
- 管理员命令需要 OP 权限
- 安全的 UUID 追踪数据存储
? 性能
- 异步数据管理
- 优化的代码生成
- 高效缓存机制
- 极低的内存占用
? 语言支持
默认语言:English
适用于各种规模的服务器 - 从小型社区服务器到大型网络集群!
? 截图

? Bug 报告与支持
发现错误或需要帮助?请在 Discord Redpix.net 上提交工单!
⭐ 支持本项目
如果您喜欢这个插件,请留下星标并分享给他人!
RedpixCC - Premium Code Redemption System
A complete and professional code system for Minecraft Folia/Paper servers that allows administrators to create a flexible reward system with redeemable codes.
? Key Features
Code Management
- Code Creation: Authorized players can create random 5-digit codes
- One-Time Redemption: Each code can only be redeemed once per player
- Auto-Expiration: Codes automatically expire after 7 days
- Permission System: Only admin-authorized players can create codes
Reward System
- Flexible Rewards: Any items can be configured as rewards
- Probability-Based: Each reward has an individual chance (1-100%)
- Random Selection: Players receive 3 random rewards when redeeming
- Weighted Distribution: Items with higher probability appear more often
Intuitive GUIs
- Code Management GUI: Clear overview of all authorized players
- Reward GUI: Easy adding, editing, and removing of rewards
- Drag & Drop: Simply drag items into GUI to add rewards
- Live Editing: Adjust probabilities directly in the GUI
? Commands
Admin Commands (/code)
/code allowcode <Player> - Grant code creation permission
/code remove <Player> - Revoke code creation permission
/code check <Player> - View all codes from a player with statistics
/code delete <Player> - Permanently delete all codes from a player
/code gui - Open the management GUI
/code reload - Reload configuration (no restart required)
Player Commands
/mycode create - Create a new redeemable code (authorized players only)
/vcode <Code> - Redeem a code and receive rewards
✨ Highlights
Smart Code Management
- Automatic cleanup of expired codes
- Self-redemption protection (players can't redeem own codes)
- Tracking: Who redeemed which code and when
- Statistics: View redemptions per code
Reward GUI Features
- Right Click: Manually enter probability (1-100%)
- Middle Click / Q: Cycle through preset values (10% → 25% → 50% → 75% → 100%)
- Shift + Left Click: Remove reward and return to inventory
- Persistent Items: Rewards stay saved and don't disappear
Player-Friendly
- Clear, color-coded messages
- Helpful error messages
- Clean code display
- Visual confirmation on successful redemption
Server Performance
- Folia-Compatible: Optimized for modern multi-threaded servers
- Efficient YAML data storage
- No database required
- Minimal server load
? Use Cases
For Content Creators / YouTubers
Create codes for your community containing exclusive items, resources, or special rewards. Perfect for giveaways!
For Event Servers
Distribute codes during events that participants can redeem for prizes.
For Network Servers
Reward players with special codes for achievements, survey participation, or as compensation.
For Marketing / Promotion
Distribute codes via social media, Discord, or other platforms to attract new players.
? Technical Details
- Minecraft Version: 1.21.4
- Server Software: Folia
- API Version: 1.21
- Java Version: 21
- Dependencies: None (standalone)
? Installation
- Download
RedpixCC.jar
- Copy the JAR to your server's
plugins/ folder
- Restart the server
- Configure rewards via
/code gui
- Grant permissions with
/code allowcode <Name>
?️ Security
- Protection against duplicate codes
- Prevents multiple redemptions by the same player
- OP permission required for admin commands
- Secure data storage with UUID tracking
? Performance
- Asynchronous data management
- Optimized code generation
- Efficient caching
- Minimal RAM usage
? Languages
Default language: English
Perfect for servers of any size - From small community servers to large networks!
? Screenshots

? Bug Reports & Support
Found a bug or need help? Create a Ticket on Discord Redpix.net!
⭐ Support the Project
If you like this plugin, please leave a star and share it with others!
评论 0
登录后参与评分
还没有评论,来抢沙发吧