Skip to main content

Commands & Permissions

FioVoucher keeps the public command tree compact, then fans out into redeem, list, info, trial, admin, and menu control. This page follows the current 1.8 command handler and plugin.yml.

Root command

Main command:

/voucher

Aliases from plugin.yml:

/vouchers
/fiovoucher
/fvoucher

The examples below use /voucher, but the same subcommands work through those aliases.

Player commands

CommandPermissionBehavior
/voucher redeem <code>fiovoucher.command.redeemRedeems a voucher, usually through the confirmation menu first.
/voucher trialsfiovoucher.command.trialsOpens the active trial voucher list or prints it to console.
/voucher pause <code>fiovoucher.command.pausePauses or resumes a personal voucher trial.
/voucher listfiovoucher.command.listLists saved vouchers.
/voucher info <code>fiovoucher.command.infoShows voucher detail information.
/voucher reloadfiovoucher.command.reloadReloads config, language, menus, and voucher data.
/voucher delete <code>fiovoucher.command.deleteDeletes a voucher.
/voucher helpnone by itselfShows the usage list filtered by the sender's permissions.

Admin commands

The admin branch supports:

CommandPermissionBehavior
/voucher adminfiovoucher.command.adminShows admin help.
/voucher admin helpfiovoucher.command.adminShows admin help.
/voucher admin give <player> <voucherid> [amount]fiovoucher.command.giveGives voucher items to one online player.
/voucher admin giveall <voucherid> [amount]fiovoucher.command.giveallGives voucher items to all online players.
/voucher admin listfiovoucher.command.listLists saved vouchers through the admin branch.
/voucher admin reloadfiovoucher.command.reloadReloads the plugin through the admin branch.
/voucher admin history <player>fiovoucher.command.historyShows voucher history for one player.
/voucher admin freeze <voucherid>fiovoucher.command.freezeFreezes a voucher.
/voucher admin unfreeze <voucherid>fiovoucher.command.freezeUnfreezes a voucher.
/voucher admin menu open confirmation <player>fiovoucher.command.menu.openOpens the confirmation menu for a player.
/voucher admin menu open voucherhistory <player>fiovoucher.command.menu.openOpens the voucher history menu. Alias: history.
/voucher admin menu open playerhistory <player>fiovoucher.command.menu.openOpens the player history/trials menu. Alias: trials.
Removed command

The current command handler does not expose /voucher create. Create and edit vouchers through YAML files in plugins/FioVoucher/vouchers/.

Permission table

PermissionDefaultDescription
fiovoucher.adminopGrants the full voucher command tree.
fiovoucher.command.adminopAllows /voucher admin.
fiovoucher.command.redeemtrueAllows redeeming vouchers.
fiovoucher.command.deleteopAllows deleting vouchers.
fiovoucher.command.listopAllows listing vouchers.
fiovoucher.command.infoopAllows viewing voucher details.
fiovoucher.command.reloadopAllows reloading the plugin.
fiovoucher.command.trialstrueAllows viewing active trial vouchers.
fiovoucher.command.pausetrueAllows pausing a personal trial.
fiovoucher.command.giveopAllows giving vouchers to one player.
fiovoucher.command.giveallopAllows giving vouchers to all online players.
fiovoucher.command.historyopAllows viewing voucher history for a player.
fiovoucher.command.freezeopAllows freezing or unfreezing vouchers.
fiovoucher.command.menu.openopAllows forcing voucher menus open.
fiovoucher.update.notifyopAllows receiving update notifications.

Voucher id usage

Use the voucher.id value from the YAML file in command arguments:

/voucher redeem money
/voucher admin give Steve money 1
/voucher admin giveall trial_vip 1
/voucher info behavior_glow_unbreakable

The shipped voucher ids are listed in Voucher YAML List.

tip

For voucher command arguments, use the voucher.id inside the YAML file. The file name usually matches the id in the default examples, but the plugin resolves command input from the loaded voucher code.

Action tags

Voucher YAML reward actions support these action prefixes:

PrefixUsage
[MESSAGE]Sends formatted text to the player.
[SOUND]Plays a configured sound.
[CONSOLE]Runs a console command.
[ITEM]Gives an item built from the inline item syntax.
[EXP_LEVELS]Gives experience levels.
[EXP_POINTS]Gives raw experience points.
[ACTIONBAR]Sends action bar text.
[TITLE]Sets title text.
[SUBTITLE]Sets subtitle text.
[TOAST:<material>]Sends an advancement toast using the given material icon.

Smart usage

The command handler also includes smart usage hints and nearest-match suggestions for mistyped subcommands.