VoucherAddon

VoucherAddon is a powerful Minecraft plugin for Bukkit/Spigot servers that introduces a customizable voucher system. Server administrators can create and distribute special items (vouchers) that execute commands, grant rewards, assign ranks, or initiate interactive conversations when redeemed by players.

Getting Started

Basic Voucher

Advanced Voucher

General

Installation

  1. Download the VoucherAddon.jar file

  2. Place it in your server's plugins folder

  3. Restart your server

  4. Edit the configuration files to customize vouchers

Permissions

  • therewards.voucher - Required to use voucher commands

Commands

The plugin uses the base command /rewards voucher with the following subcommands:

  • /rewards voucher give <player> <type> [amount] - Give a specific voucher to a player

  • /rewards voucher take <player> <type> [amount] - Remove a specific voucher from a player

  • /rewards voucher giveall <type> [amount] - Give a voucher to all online players

  • /rewards voucher takeall <type> [amount] - Remove a specific voucher from all online players

  • /rewards voucher list - Display all available voucher types

  • /rewards voucher openmenu [player] - Open the voucher menu for a player

  • /rewards voucher playerinfo [player] - Show information about a player's vouchers

Configuration

Main Structure

Vouchers are configured in the vouchers.yml file. Each voucher has its own section with specific properties:

Basic Properties

Property
Description

item

Minecraft item type that represents the voucher

model_data

Custom model data for custom textures

glow

Whether the item should have an enchantment glow effect

name

Voucher display name (supports color codes)

lore

Description lines shown on the item (supports color codes)

cooldown

Cooldown time in seconds before the same voucher can be used again

permission_required

Whether a permission is required to use this voucher

worlds

List of allowed or blocked worlds (prefix with "!" to block a world)

Commands Section

The commands section defines the actions that will be executed when the voucher is used:

You can use variables:

  • {player} - Player's name

  • Custom variables defined in conversations

Conversation System

The conversation system allows interactive dialogues with players before activating a voucher, collecting information to customize the reward experience.

Basic Structure

Step Types

Text Input

Collects free text input from the player:

Numeric Range

Allows the player to select a numeric value:

Multiple Choice

Presents predefined options to the player:

Confirmation

Asks for a yes/no confirmation:

Regex Validation

Validates text input against a regular expression:

Material Selection

Allows selection of a valid Minecraft material:

Conversation Navigation

  • defaultNextStep: The step to follow after the current one

  • conditionalSteps: Different paths based on the player's response

When a conversation ends (defaultNextStep: end), the plugin executes the voucher's commands.

Example Configurations

Simple Voucher

Welcome Voucher with Basic Conversation

Class Selection with Branching Paths

Last updated