
ProVouchers 添加了物理兑换券物品、可兑换代码以及一个 /stash 菜单,用于存放玩家稍后可领取的奖励。你可以决定奖励的内容、使用者以及领取频率。
可用于每日奖励、投票激励、新手礼包、活动奖品、临时权限组或一次性赠品代码。兑换券和代码均在 YAML 文件中定义,无需重启服务器即可重新加载。
文档 | 源代码 | Discord
玩家如何获得奖励
- 兑换券物品: 玩家右键点击物品即可兑换。可设置其材质、名称、描述、发光效果、自定义模型或头颅。兼容来自 ItemsAdder、Oraxen、Nexo 和 Head Database 的自定义物品。
- 可兑换代码: 玩家输入
/voucher redeem <code> 进行兑换。代码可以限制使用次数、针对每个玩家单独限制,或设置过期时间。
- 储物箱 (Stash): 为排队虚拟兑换券,包括那些已加入过服务器但当前离线的玩家。他们可以通过
/stash 单独领取或使用 全部领取 功能领取奖励。储物箱条目可以设置过期时间,并在玩家上线时发送通知。
储物箱还可以捕获无法放入背包的兑换券物品。设置 stash.overflow: stash 以启用此功能。默认行为是将溢出物品掉落至地面。
奖励与条件
一个兑换券或代码可以触发多项奖励:物品、经验值、Vault 货币、LuckPerms 权限组或权限、控制台命令、玩家命令、消息、广播、标题、动作栏、音效以及 Discord Webhook。加权随机奖励池可与必得奖励并行运行。命名随机抽取允许你在奖励及其公告中复用相同的数值。
条件功能允许你通过权限、权限组、世界、WorldGuard 区域、游戏模式、余额、经验等级、在线时长、背包内容、已完成的进度、玩家统计数据或 PlaceholderAPI 比较来限制兑换。所有配置的条件都必须满足。
基于玩家的冷却时间、基于权限组的冷却层级以及全局或基于玩家的使用限制均会持久化存储。共享的 MySQL、MariaDB 或 PostgreSQL 数据库允许多个服务器执行相同的限制策略。你还可以设置开始日期、过期日期以及可选的确认提示。
物理兑换券支持仅限所有者兑换,并支持可配置的灵魂绑定限制。不可堆叠的兑换券可以获得一个唯一的、持久的印章,以检测重复或已使用的副本。可堆叠的兑换券不使用单独的重复追踪机制。
YAML 中的兑换券示例
创建 plugins/ProVouchers/vouchers/daily.yml:
display-name: "<gold>每日奖励"
item:
material: SUNFLOWER
glow: true
lore:
- "<gray>右键点击以兑换"
cooldown: 86400
rewards:
- "item: DIAMOND 1"
- "message: <green>明天再来吧!"
运行 /voucher reload 以加载该文件。玩家在 24 小时后可以再次兑换该兑换券,即使经过服务器重启也依然有效。
服务器管理人员工具
/voucher fromhand 将你手中持有的物品保存为新的兑换券。还有用于发放兑换券、预览奖励、重新加载单个文件、通过 /voucher doctor 检查插件状态以及重置使用记录的命令。
从 CrazyVouchers 迁移?/voucher import crazyvouchers 读取当前的和旧版的兑换券及代码布局。它会生成 ProVouchers 文件而不会覆盖你的原始文件,并报告需要手动审查的设置。
ProVouchers 包含英语、德语、法语、西班牙语、波兰语、丹麦语和荷兰语。消息可以跟随每位玩家客户端的语言,英语作为后备语言。开发者也可以使用公共 API 和兑换事件。
要求
- 服务端: Paper、Purpur 或 Folia
- Minecraft: 26.1 或更高版本(已测试至 26.3)
- Java: 25
- 存储: 默认使用 SQLite;支持 MySQL、MariaDB 和 PostgreSQL
Vault、LuckPerms、WorldGuard、PlaceholderAPI、MiniPlaceholders 和自定义物品插件为可选组件。仅安装配置所需的集成项。
有关设置说明和配置示例,请参阅 文档。如有 Bug,请使用 GitHub Issues。如有疑问和支持需求,请加入 Discord。

ProVouchers adds physical voucher items, redeemable codes, and a /stash menu for rewards players can claim later. You decide what a reward contains, who can use it, and how often it can be claimed.
Use it for daily rewards, vote incentives, starter kits, event prizes, temporary ranks, or one-time giveaway codes. Vouchers and codes are defined in YAML and can be reloaded without a server restart.
Documentation | Source code | Discord
How players receive rewards
- Voucher items: Players right-click an item to redeem it. Set its material, name, lore, glow, custom model, or head. Compatible custom items can come from ItemsAdder, Oraxen, Nexo, and Head Database.
- Redeemable codes: Players enter
/voucher redeem <code>. Codes can be limited to a certain number of uses, restricted per player, or set to expire.
- The Stash: Queue virtual vouchers for players, including players who are offline but have joined before. They can claim their rewards through
/stash, individually or with Claim all. Stash entries can expire and can notify players when they join.
The Stash can also catch voucher items that will not fit in an inventory. Set stash.overflow: stash to enable this. The default behavior is to drop overflow items.
Rewards and conditions
A voucher or code can run multiple rewards: items, XP, Vault currency, LuckPerms groups or permissions, console and player commands, messages, broadcasts, titles, action bars, sounds, and Discord webhooks. Weighted random reward pools can run alongside guaranteed rewards. Named random rolls let you reuse the same number in a reward and its announcement.
Conditions let you restrict redemption by permission, rank, world, WorldGuard region, game mode, balance, XP level, playtime, inventory contents, completed advancements, player statistics, or a PlaceholderAPI comparison. All configured conditions must pass.
Per-player cooldowns, permission-based cooldown tiers, and global or per-player usage limits are stored persistently. A shared MySQL, MariaDB, or PostgreSQL database lets multiple servers enforce the same limits. You can also set start dates, expiry dates, and optional confirmation prompts.
Physical vouchers support owner-only redemption and configurable soulbound restrictions. Non-stackable vouchers can receive a unique, persistent stamp to detect duplicate or already-used copies. Stackable vouchers do not use individual duplicate tracking.
A voucher in YAML
Create plugins/ProVouchers/vouchers/daily.yml:
display-name: "<gold>Daily Reward"
item:
material: SUNFLOWER
glow: true
lore:
- "<gray>Right-click to redeem"
cooldown: 86400
rewards:
- "item: DIAMOND 1"
- "message: <green>Come back tomorrow!"
Run /voucher reload to load it. The player can redeem the voucher again after 24 hours, including across restarts.
Tools for server staff
/voucher fromhand saves the item you're holding as a new voucher. There are commands to give vouchers, preview rewards, reload an individual file, inspect plugin status with /voucher doctor, and reset usage records.
Moving from CrazyVouchers? /voucher import crazyvouchers reads both current and legacy voucher and code layouts. It creates ProVouchers files without overwriting your originals, and reports settings that need manual review.
ProVouchers includes English, German, French, Spanish, Polish, Danish, and Dutch. Messages can follow each player's client language, with English as a fallback. Developers can also use the public API and redemption events.
Requirements
- Server: Paper, Purpur, or Folia
- Minecraft: 26.1 or newer (tested through 26.3)
- Java: 25
- Storage: SQLite by default; MySQL, MariaDB, and PostgreSQL are supported
Vault, LuckPerms, WorldGuard, PlaceholderAPI, MiniPlaceholders, and custom item plugins are optional. Install only the integrations needed for your configuration.
For setup instructions and configuration examples, see the documentation. For bugs, use GitHub Issues. For questions and support, join Discord.
评论 0
登录后参与评分
还没有评论,来抢沙发吧