Skip to main content

Voucher YAML List

Bundled voucher files are located in:

plugins/FioVoucher/vouchers/*.yml

Each file uses voucher.id as the voucher code. This code is used in commands such as /voucher redeem <code>, /voucher admin give <player> <voucherid> [amount], /voucher info <code>, and /voucher admin freeze <voucherid>.

Quick usage​

/voucher list
/voucher info money
/voucher redeem money
/voucher admin give Steve money 1
/voucher admin giveall trial_vip 1
/voucher admin freeze behavior_glow_unbreakable
/voucher admin unfreeze behavior_glow_unbreakable
tip

When creating a new voucher, copy one of the YAML files in the vouchers folder, rename the file, then update voucher.id. Commands use voucher.id, not the file name.

Bundled vouchers​

YAML FileVoucher IDMaterialUsage
example.ymlexamplePLAYER_HEADFull template covering armor trims, command actions, toast, title, item rewards, experience, bundles, enchantments, durability, unbreakable items, and permission gates. Use it as a starting point for new voucher files.
money.ymlmoneyPAPERSimple economy voucher. It gives money through a [CONSOLE] action, typically connected to an economy plugin command.
permission_kit.ymlpermission_kitCHESTPermission-gated starter kit example. Use it for rewards that require the player to have, or not have, a specific permission.
random_food.ymlrandom_foodCOOKED_BEEFRandom food reward example. It uses commands.random-claimed to select one reward branch by chance.
trial_vip.ymltrial_vipPLAYER_HEADVIP trial voucher example. It grants temporary access through settings.trial, including trial duration and optional pause/stack behavior.
world_crate.ymlworld_crateTRIPWIRE_HOOKWorld-restricted crate voucher example. Use it for rewards that should only be claimable in specific worlds through settings.redeem.world.
behavior_banner_patterns.ymlbehavior_banner_patternsWHITE_BANNERBanner pattern item example. Use it to test pattern metadata on banner rewards.
behavior_bundle_container.ymlbehavior_bundle_containerBUNDLEBundle container example that renders items inside the bundle through bundle_container behavior. The displayed bundle contents are locked as reward presentation data.
behavior_crossbow_model.ymlbehavior_crossbow_modelCROSSBOWCustom model data example for crossbows. Useful for servers with resource-pack item models.
behavior_diamond_trim_chestplate.ymlbehavior_diamond_trim_chestplateDIAMOND_CHESTPLATEArmor trim example for a diamond chestplate. Use it for modern cosmetic armor rewards.
behavior_glow_unbreakable.ymlbehavior_glow_unbreakableDIAMOND_SWORDGlow and unbreakable item example. Use it for special rewards that should not lose durability.
behavior_gold_trim_boots.ymlbehavior_gold_trim_bootsGOLDEN_BOOTSArmor trim example for golden boots. Use it as another armor trim reward variant.
behavior_iron_trim_helmet.ymlbehavior_iron_trim_helmetIRON_HELMETArmor trim example for an iron helmet. Use it to document armor material and trim combinations.
behavior_leather_boots.ymlbehavior_leather_bootsLEATHER_BOOTSLeather boots color example. Useful for custom-colored leather armor rewards.
behavior_leather_chestplate.ymlbehavior_leather_chestplateLEATHER_CHESTPLATELeather chestplate color example. Use it as part of a cosmetic leather armor set.
behavior_leather_helmet.ymlbehavior_leather_helmetLEATHER_HELMETLeather helmet color example. Use it for custom-colored leather armor variants.
behavior_leather_horse_armor.ymlbehavior_leather_horse_armorLEATHER_HORSE_ARMORLeather horse armor color example. Useful for cosmetic mount rewards.
behavior_leather_leggings.ymlbehavior_leather_leggingsLEATHER_LEGGINGSLeather leggings color example. Use it to complete a custom leather armor set.
behavior_model_data.ymlbehavior_model_dataPAPERmodel-data item example. Useful for servers using custom item models from a resource pack.
behavior_netherite_trim_leggings.ymlbehavior_netherite_trim_leggingsNETHERITE_LEGGINGSArmor trim example for netherite leggings. Use it for premium armor rewards.
behavior_potion_regeneration.ymlbehavior_potion_regenerationPOTIONPotion metadata example for regeneration. Useful for ready-to-use potion rewards.
behavior_potion_speed.ymlbehavior_potion_speedSPLASH_POTIONSplash potion metadata example for speed. Use it for throwable potion rewards.
behavior_potion_strength.ymlbehavior_potion_strengthLINGERING_POTIONLingering potion metadata example for strength. Use it for lingering potion rewards.
behavior_random_reward.ymlbehavior_random_rewardPRISMARINE_SHARDRandom reward behavior example. Use it to understand chance-based reward groups in commands.random-claimed.
behavior_shield_patterns.ymlbehavior_shield_patternsSHIELDShield pattern example. Useful for cosmetic shield vouchers.
behavior_tipped_arrow.ymlbehavior_tipped_arrowTIPPED_ARROWTipped arrow metadata example. Use it for arrow rewards with potion effects.

Command pattern per voucher​

Replace <voucherid> with one of the IDs from the table above:

/voucher redeem <voucherid>
/voucher info <voucherid>
/voucher delete <voucherid>
/voucher pause <voucherid>
/voucher admin give <player> <voucherid> [amount]
/voucher admin giveall <voucherid> [amount]
/voucher admin freeze <voucherid>
/voucher admin unfreeze <voucherid>

/voucher pause <voucherid> only works for trial vouchers with both settings.trial.enabled and settings.trial.allow-pause enabled.