RedeemCode 是用于服务器活动、Discord 抽奖以及内容创作者合作的终极实用工具。它允许服务器管理员创建自定义的字母数字代码,玩家可以在游戏中领取这些代码以获得奖励。
由于该插件通过执行控制台命令来分发奖励,因此它与市场上几乎所有经济类、箱子类或权限类插件都兼容。无论你想给玩家 5,000 游戏货币、史诗箱子钥匙还是 30 天的 VIP 头衔,只要能在控制台中输入的命令,RedeemCode 都能实现。它旨在快速、安全且完全可定制,以契合你的服务器主题。
? 功能
- ? 灵活的代码类型: 创建一次性代码(非常适合特定玩家)或多用/全局代码(非常适合 YouTube 视频或 Discord 公告)。
- ? 高级奖励池: 将多个命令关联到单个代码上。设置代码一次性发放所有奖励,或者基于百分比概率随机抽取一项奖励。
- ? 通用兼容性: 奖励通过控制台命令发放,这意味着你可以将其与 EssentialsX、LuckPerms、ExcellentCrates 或其他任何插件集成。
- ⛔ 使用次数限制: 设置全局代码在被自动失效前可以被领取的确切次数。
- ? 玩家重置: 轻松重置特定玩家的领取历史,使他们可以再次使用一次性代码。
- ? 完全自定义消息: 所有聊天输出均可在
lang.yml 中修改,以匹配你的服务器品牌风格。
- ? 安全存储: 防止玩家重复领取同一个多用代码。
⌨️ 命令与权限
玩家命令:
(redeemcode.use - 默认授予所有玩家)
/redeem <code> - 领取奖励代码。
管理员命令:
(以下所有命令均需要权限 redeemcode.admin)
| 命令 |
描述 |
| /redeemcode create [code] |
创建一个新的空白代码。 |
| /redeemcode addcmd [code] [command] |
向代码的奖励池中添加一个命令。 |
| /redeemcode reset [player] [code] |
清除玩家对特定代码的领取历史,允许他们再次使用该代码。 |
| /redeemcode info [code] |
显示有关代码的所有详细信息,包括其模式、剩余使用次数以及命令/概率列表。 |
| /redeemcode reload |
在不重启服务器的情况下重新加载 config.yml 和 lang.yml。 |
? 完全可定制的消息
RedeemCode 附带专用的 lang.yml 文件。你可以 100% 控制插件的前缀和所有输出文本。它完全支持现代 MiniMessage 标签(例如 <red>, <gradient>)以实现完整的十六进制颜色支持,并包含如 %player%、%code% 和 %reward% 等变量,以便在有人领取稀有代码时创建动态广播消息!
prefix: "<dark_gray>[<gold>RedeemCode<dark_gray>] <reset>"
messages:
redeem_success: "<green>代码领取成功!"
no_rewards: "<yellow>代码已领取,但未附加任何奖励。"
invalid_code: "<red>无效的代码。"
max_uses_reached: "<red>此代码已达到最大全局使用次数。"
already_used: "<red>你已经使用过此代码!"
cooldown: "<red>请在领取另一个代码前等待 %time% 秒。"
reload_success: "<green>配置和语言文件重新加载成功!"
error: "<red>发生错误。请检查控制台或确保语法正确。"
only_players: "<red>只有玩家才能使用此命令。"
no_permission_code: "<red>你没有权限使用此特定代码。"
mode_set: "<green>代码 %code% 的模式已设置为 %mode%。"
invalid_number: "<red>请输入有效的数字。"
reset_success: "<green>成功为玩家 <yellow>%player%<green> 重置代码 <aqua>%code% <green>的领取记录!"
reset_not_used: "<red>看起来 <yellow>%player% <red>尚未使用该代码。"
player_not_found: "<red>在服务器记录中找不到该玩家。"
?️ 服务器要求
要运行 RedeemCode,你的服务器必须满足以下最低要求:
- 服务器软件: Paper 或 Purpur
- Minecraft 版本: 26.1.x
- Java 版本: Java 25
RedeemCode is the ultimate utility for server events, Discord giveaways, and content creator partnerships. It allows server administrators to create custom, alphanumeric codes that players can claim in-game to receive rewards.
Because the plugin distributes rewards by executing console commands, it is compatible with virtually every economy, crate, or permissions plugin on the market. Whether you want to give a player $5,000 in-game currency, an Epic Crate Key, or a 30-day VIP rank, if it can be typed in the console, RedeemCode can deliver it. It is built to be fast, secure, and completely customizable to fit your server's theme.
? Features
- ? Flexible Code Types: Create single-use codes (perfect for specific players) or multi-use/global codes (perfect for YouTube videos or Discord announcements).
- ? Advanced Reward Pools: Attach multiple commands to a single code. Set the code to give all rewards at once, or roll a random reward based on percentage chances.
- ? Universal Compatibility: Rewards are given via console commands, meaning you can hook it into EssentialsX, LuckPerms, ExcellentCrates, or any other plugin.
- ⛔ Usage Limits: Set an exact number of times a global code can be claimed before it automatically expires.
- ? Player Resets: Easily reset a specific player's claim history so they can use a one-time code again.
- ? Fully Custom Messages: Every single chat output can be modified in the
lang.yml to match your server's branding.
- ? Secure Storage: Prevents players from claiming the same multi-use code twice.
⌨️ Commands & Permissions
Player Commands:
(redeemcode.use - Given to all players by default)
/redeem <code> - Claims a reward code.
Admin Commands:
(Permission: redeemcode.admin is required for all commands below)
| COMMAND |
DESCRIPTION |
| /redeemcode create [code] |
Creates a new, blank code. |
| /redeemcode addcmd [code] [command] |
Adds a command to the code's reward pool. |
| /redeemcode reset [player] [code] |
Clears a player's claim history for a specific code, allowing them to use it again. |
| /redeemcode info [code] |
Displays all details about a code, including its mode, remaining uses, and its list of commands/chances. |
| /redeemcode reload |
Reloads the config.yml and lang.yml without restarting the server. |
? Fully Customizable Messages
RedeemCode comes with a dedicated lang.yml file. You have 100% control over the plugin's prefix and all output text. It fully supports modern MiniMessage tags (e.g., <red>, <gradient>) for full hex color support and includes variables like %player%, %code%, and %reward% so you can create dynamic broadcast messages when someone claims a rare code!
prefix: "<dark_gray>[<gold>RedeemCode<dark_gray>] <reset>"
messages:
redeem_success: "<green>Code redeemed successfully!"
no_rewards: "<yellow>Code redeemed, but there were no rewards attached to it."
invalid_code: "<red>Invalid code."
max_uses_reached: "<red>This code has reached its maximum global uses."
already_used: "<red>You have already used this code!"
cooldown: "<red>Please wait %time% seconds before redeeming another code."
reload_success: "<green>Config and Language files reloaded successfully!"
error: "<red>An error occurred. Check console or make sure your syntax is correct."
only_players: "<red>Only players can use this command."
no_permission_code: "<red>You don't have permission to use this specific code."
mode_set: "<green>Mode for code %code% set to %mode%."
invalid_number: "<red>Please enter a valid number."
reset_success: "<green>Successfully reset code <aqua>%code% <green>for player <yellow>%player%<green>!"
reset_not_used: "<red>It looks like <yellow>%player% <red>hasn't used that code yet."
player_not_found: "<red>Could not find that player in the server records."
?️ Server Requirements
To run RedeemCode, your server must meet the following minimum requirements:
- Server Software: Paper or Purpur
- Minecraft Version: 26.1.x
- Java Version: Java 25
评论 0
登录后参与评分
还没有评论,来抢沙发吧