Plugin Files

Files that are generated by the plugin.

config.yml

# Default language file
lang: en_US
# Should the plugin use metrics?
# It simply allows me to see how many servers
# are currently using the vouchers plugin.
metrics: true
defaults:
# The default material to be used for the voucher
material: PAPER
# The default permission for a voucher
permission: vouchers.use.%voucher_id%
# The default display name for a voucher
display name: '&e%voucher_id%'
# The default lore for a voucher
lore:
- '&7Default voucher lore'
# Should the voucher glow by default?
use glow: true
# Should the player be asked to confirm the redeem by default?
ask to confirm: true
# Should the voucher be unbreakable by default
unbreakable: true
# Should attributes be hidden by default
hide attributes: true
# Should the voucher be taken from the player on use?
remove on use: true
# Should a title be sent on redeem?
send title: true
# Should an actionbar be sent on redeem?
send actionbar: true
# Default title to be sent on redeem
title: '&e&lVoucher Redeemed!'
# Default subtitle to be sent on redeem
subtitle: '&eYou redeemed the %voucher_id% voucher!'
# Default actionbar to be sent on redeem
actionbar: '&e%voucher_id% voucher redeemed'
# Default fadein time in seconds for a voucher
title fade in: 1
# Default stay time in seconds for a voucher
title stay: 2
# Default fadein time in seconds for a voucher
title fade out: 1
# Default commands to be ran on voucher redeem
commands:
- heal %player%
# Default messages to be broadcast to the server
# If empty, nothing will be sent
# %voucher_id% -> the id of the voucher
# %voucher_title% -> the display name of the voucher
broadcast messages:
- '&e%player% redeemed the %voucher_id% voucher'
# Default messages to be sent to the player on voucher redeem
# If empty, nothing will be sent
# %voucher_id% -> the id of the voucher
# %voucher_title% -> the display name of the voucher
player messages:
- '&eYou redeemed the %voucher_id% voucher'
# The default sound to be played on redeem
redeem sound: ENTITY_EXPERIENCE_ORB_PICKUP
gui:
back button:
# Settings for the back button
item: ARROW
name: '&e<< Back'
lore:
- '&7Click the button to go'
- '&7back to the previous page.'
close button:
# Settings for the close button
item: BARRIER
name: '&cClose'
lore:
- '&7Click to close this menu.'
next button:
# Settings for the next button
item: ARROW
name: '&eNext >>'
lore:
- '&7Click the button to go'
- '&7to the next page.'
confirm gui:
title: '&a&lConfirm Redeem?'
items:
'yes':
material: LIME_STAINED_GLASS_PANE
name: '&a&lRedeem'
lore:
- '&7Click to redeem voucher'
'no':
material: RED_STAINED_GLASS_PANE
name: '&c&lCancel'
lore:
- '&7Click to cancel redeeming the voucher'
list gui:
title: '&eListing Vouchers'
bottom bar:
# Settings for the bottom bar
item: LIGHT_GRAY_STAINED_GLASS_PANE
name: ''
lore:
- ''

data.yml (Generated when the first voucher is created)

vouchers:
suicide:
display name: '&4&lS&c&lu&4&li&c&lc&4&li&c&ld&4&le'
permission: vouchers.use.suicide
material: IRON_SWORD
lore:
- '&cYou will &4&l&nDIE&r &cif you redeem this'
options:
glowing: true
ask to confirm: true
unbreakable: true
hide attributes: true
remove on use: true
send title: true
send actionbar: true
execution:
commands:
- kill %player%
broadcast messages:
- '&6%player% &eRedeemed the %voucher_title% &evoucher!'
player messages:
- '&eYou redeemed the %voucher_title% &evoucher!'
redeem sound: ITEM_FLINTANDSTEEL_USE
titles:
title: '&e&lVoucher Redeemed!'
subtitle: '&eYou redeemed the %voucher_id% voucher!'
actionbar: '&e%voucher_id% voucher redeemed'
fade in: 1
stay: 2
fade out: 1
food:
display name: '&b&lF&c&lo&d&lo&6&ld'
permission: vouchers.use.food
material: BREAD
lore:
- '&aFree food'
options:
glowing: true
ask to confirm: true
unbreakable: true
hide attributes: true
remove on use: true
send title: true
send actionbar: true
execution:
commands:
- give %player% BREAD 8
broadcast messages:
- '&6%player% &eRedeemed the %voucher_title% &evoucher!'
player messages:
- '&eYou redeemed the %voucher_title% &evoucher!'
redeem sound: ENTITY_EXPERIENCE_ORB_PICKUP
titles:
title: '&e&lVoucher Redeemed!'
subtitle: '&eYou redeemed the %voucher_title% &evoucher!'
actionbar: '%voucher_title% &evoucher redeemed'
fade in: 1
stay: 2
fade out: 1