Vouchers that can do almost anything you can think of!
Java
Mega Vouchers
WIP - This project is not finished.
Features - some planned, other implemented.
Create custom vouchers with a wide range of elements to choose from such as
Conditions -> Permission and Withdrawbles
Actions -> Messages, Sounds and Command (Chance, Random and Normal)
Rewards -> Money, HP, EXP, Item.
Create virtual and physical vouchers for your players.
Physical vouchers -> Consist of an interactable item.
Virtual vouchers -> Consist of a voucher that is associated with the player but is not an item, they redeem it by running a command or through a gui. (PLANNED)
More features are still being though of and ironed out :)
Example Config - as of now
type: physical # The type of the voucher, either physical or virtual# Check https://docs.advntr.dev/minimessage/format.html for how to format messages, item name etc.item: # The item to be displayed and/or given to the playertype: PAPER # The type of the itemname: "Example Voucher"# The name of the itemlore: # The lore of the item
- "This is an example voucher."
- "Right click to redeem."glow: true # Whether the item should glow or notunbreakable: true # Whether the item should be unbreakable or notmodel-data: 1# The model data of the itemenchants:
unbreaking: 1# The enchantments of the itemelements: # Check the wiki for all existing elementselement-id: # This should be either the element id like [message, commnand], or a random identifiertype: message # Assumes the type by this value.message: "You have redeemed the example voucher!"sound: # Assumes the type by the section's name -> soundsound1: # represents a soundsound: "ENTITY_PLAYER_LEVELUP"# Check https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Sound.html for all soundsvolume: 1# The volume of the soundpitch: 1# The pitch of the soundsound2:
sound: "ENTITY_EXPERIENCE_ORB_PICKUP"volume: 1pitch: 1list-permission:
type: permissionmessage: "<red>You do not have permissions to redeem this voucher."# Sends this message to the playerpermission: # The permission(s) to check for, in this case
- "example.voucher.list"claim-permission:
type: permissionmessage: # Sends a custom message, check wiki/messages for all types and how to configure them.type: actionbarmessage: "<red>You have already redeemed this voucher."permission: "example.voucher"commands: # TODO: add random/chance commands.type: commandcommands: # The commands to be executed, they will all be executed in the order they are listed
- "give %player% diamond 1"
- "give %player% emerald 1"item:
chance: 80# The chance of the item being given to the player, in this case 80%drop: false # Whether the item should be dropped or not, even if the player's inventory is not fulltype: itemitem: # The item to be given to the playertype: DIAMONDamount: 1name: "Example Item"lore:
- "This is an example item."glow: trueunbreakable: truemodel-data: 1enchants:
unbreaking: 1item2:
drop: truechance: 10# The chance of the item being given to the player, in this case 10%type: EMERALDamount: 1name: "Example Item 2"lore:
- "This is an example item."glow: trueunbreakable: truemodel-data: 1enchants:
unbreaking: 1