How to Create
Create one file per voucher inside plugins/FioVoucher/vouchers/.
Basic flow:
- copy one of the sample files
- rename it to your voucher id
- set
voucher.id - set the item
- define the reward commands
- set redeem rules
- reload the plugin
Minimal shape:
voucher:
id: example
display-name: "Example Voucher"
enabled: true
item:
material: PAPER
amount: 1
name: "Example Voucher"
lore:
- "Voucher"
commands:
claimed:
enabled: true
actions:
- "[MESSAGE] Reward claimed"
settings:
trial:
enabled: false
duration: "0s"
allow-pause: false
allow-stack: false
redeem:
max-claim: 1
For source-backed examples, see Example.
External References
Use these references when choosing valid values:
- Voucher item materials: Spigot API:
org.bukkit.Material - Item tooltip flags: Spigot API:
org.bukkit.inventory.ItemFlag - Sounds for
[SOUND]: Spigot API:org.bukkit.Sound - Enchantments for
[ITEM]enchantment tokens: Spigot API:org.bukkit.enchantments.Enchantment - MiniMessage text formatting: PaperMC Docs: MiniMessage format and standard tags
- MiniMessage overview: PaperMC Docs: MiniMessage
Prefer the official Spigot/Paper documentation over copied lists from forums, because enum names and supported tags can change between Minecraft versions.