Skip to main content

Commands

CocoVouchers provides a comprehensive command system for managing vouchers.

Main Command

CommandDescription
/voucherMain command for CocoVouchers
/vouchersAlias for /voucher
/cvShort alias for /voucher

Subcommands

Help

/voucher help

Displays all available commands with descriptions.


List Vouchers

/voucher list

Lists all available vouchers with their enabled/disabled status.

Permission: cocovouchers.list

Example Output:

Available Vouchers:
- vip_voucher (Enabled)
- diamond_crate (Enabled)
- event_reward (Disabled)

Give Voucher

/voucher give <player> <voucher> <amount>

Gives a voucher to a player.

Permission: cocovouchers.give

Arguments:

  • <player> - Target player name
  • <voucher> - Voucher name
  • <amount> - Number of vouchers to give

Example:

/voucher give Notch diamond_crate 5
> Successfully gave 5x diamond_crate to Notch!

Create Voucher

/voucher create <name>

Creates a new voucher from template.

Permission: cocovouchers.create

Arguments:

  • <name> - Unique voucher name (letters, numbers, dashes, underscores)

Example:

/voucher create weekly_reward
> Successfully created voucher weekly_reward!

Open Browser

/voucher open

Opens the voucher browser GUI to view all vouchers.

Permission: cocovouchers.open

tip

Staff with cocovouchers.give permission can give themselves vouchers directly from this GUI.


Edit Voucher

/voucher edit <name>

Opens the GUI editor for a voucher.

Permission: cocovouchers.edit

Arguments:

  • <name> - Voucher name to edit

Duplicate Voucher

/voucher duplicate <source> <new>

Creates a copy of an existing voucher.

Permission: cocovouchers.duplicate

Arguments:

  • <source> - Existing voucher name
  • <new> - New voucher name

Example:

/voucher duplicate diamond_crate gold_crate
> Duplicated diamond_crate to gold_crate!

Convert from CrazyVouchers

/voucher convert CrazyVouchers

Imports vouchers from CrazyVouchers plugin.

Permission: cocovouchers.convert

Example:

/voucher convert CrazyVouchers
> Starting conversion from CrazyVouchers...
> Converted 15 voucher(s) successfully!

Delete Voucher

/voucher delete <name>

Permanently deletes a voucher.

Permission: cocovouchers.delete

Arguments:

  • <name> - Voucher name to delete

Example:

/voucher delete old_event
> Successfully deleted voucher old_event!
warning

This action is permanent! The voucher file will be deleted.


Reload

/voucher reload

Reloads all configurations and vouchers.

Permission: cocovouchers.reload


Command Summary

CommandPermissionDescription
/voucher helpNoneShow help
/voucher listcocovouchers.listList vouchers
/voucher give <player> <voucher> <amount>cocovouchers.giveGive voucher
/voucher create <name>cocovouchers.createCreate voucher
/voucher opencocovouchers.openBrowse vouchers
/voucher edit <name>cocovouchers.editEdit voucher GUI
/voucher duplicate <source> <new>cocovouchers.duplicateCopy voucher
/voucher convert <plugin>cocovouchers.convertImport vouchers
/voucher delete <name>cocovouchers.deleteDelete voucher
/voucher reloadcocovouchers.reloadReload plugin

Tab Completion

All commands support tab completion:

  • /voucher <TAB> - Shows all subcommands
  • /voucher give <TAB> - Shows online players
  • /voucher give Player <TAB> - Shows voucher names
  • /voucher edit <TAB> - Shows voucher names