Configuration
View the Configuration Files for Vouchers.
# CIFYVouchers v1.0 Configuration
message:
prefix: '&b[&lV&b]'
main_command: '{0} &7You''re running &f{1} &7version &bv{2} &7by &f{3}&7.'
help_command_header:
- ''
- '{0} &7Listing commands:'
- '&7'
help_command_format: ' &b/vouchers {1} &8- &7{2}'
help_command_footer:
- ''
- '{0} &7A total of &f{1} &7added.'
list_command_header:
- ''
- '{0} &7Listing vouchers:'
- '&7'
list_command_format: ' &8- &b{1}'
list_command_footer:
- ''
- '{0} &7A total of &f{1} &7added.'
reload_command: '{0} &7Successfully reloaded plugin with &b{1} &7loaded.'
create_command: '{0} &7Successfully created the &b{1} &7voucher.'
give_command_self: '{0} &7You''ve given yourself {2}x &b{1} &7voucher.'
give_command_other: '{0} &7You''ve given &f{1} &7{3}x &b{2} &7voucher.'
give_all_command: '{0} &7You''ve given &f{1} &7online player(s) &7{3}x &b{2} &7voucher.'
error_no_permission_command: '{0} &7You don''t have permission to do that.'
error_no_permission_voucher: '{0} &7You need &bvouchers.use.{1} &7to redeem that
voucher.'
error_player_only: '{0} &7That''s a player only command.'
error_invalid_command: '{0} &7That''s an invalid command, use &f/voucher help&7.'
error_invalid_player: '{0} &7That player couldn''t be found.'
error_invalid_voucher: '{0} &7That voucher couldn''t be found.'
error_already_opening: '{0} &7You''re already opening a voucher.'
error_already_exists: '{0} &7That voucher already exists.'
error_no_vouchers_exist: '{0} &7No vouchers exist, try &b/voucher create <id>&7.'
cannot_use_in_region: '{0} &7This voucher cannot be used in that region.'
cannot_use_in_world: '{0} &7This voucher cannot be used in that world.'
command_usage: '{0} &7Usage: &b/voucher {1}'
Vouchers
Once you've created a voucher using /voucher create <id>
, you'll find its configuration file looking similar to below.
# CIFYVouchers v1.0.0 Configuration
# Configure your 'example' voucher here.
id: test
item:
name: '&bexample Voucher'
lore:
- '&7Go into the plugin folder'
- '&7to edit this voucher.'
- '&7'
- '&7plugins/CIFYVouchers/voucher/example.yml'
glow: true
material: PAPER
data: 0
rewards:
'80':
actions:
- '[broadcast] &b%player% &7used a %voucher% voucher (80%)'
- '[console] eco give %player% 80'
'20':
actions:
- '[broadcast] &b%player% &7used a %voucher% voucher (20%)'
- '[console] eco give %player% 20'
settings:
permission: true
blacklist:
region:
- bad_region
world:
- bad_world
Using Custom Skulls
Vouchers also provides the ability to specify a custom Base64 texture which is used to have non player heads, an example of this is listed below.
item:
name: '&eMoney Bag'
lore:
- '&7This is a magical voucher!'
glow: true
material: SKULL_ITEM
texture: 'eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZTM2ZTk0ZjZjMzRhMzU0NjVmY2U0YTkwZjJlMjU5NzYzODllYjk3MDlhMTIyNzM1NzRmZjcwZmQ0ZGFhNjg1MiJ9fX0='
data: 0
You can find these on a site such as "Minecraft Heads", copying the "texture" value into the above.
Last updated