Plugin Files
Files that are generated by the plugin.

config.yml

1
# Default language file
2
lang: en_US
3
4
# Should the plugin use metrics?
5
# It simply allows me to see how many servers
6
# are currently using the vouchers plugin.
7
metrics: true
8
9
defaults:
10
11
# The default material to be used for the voucher
12
material: PAPER
13
14
# The default permission for a voucher
15
permission: vouchers.use.%voucher_id%
16
17
# The default display name for a voucher
18
display name: '&e%voucher_id%'
19
20
# The default lore for a voucher
21
lore:
22
- '&7Default voucher lore'
23
24
# Should the voucher glow by default?
25
use glow: true
26
27
# Should the player be asked to confirm the redeem by default?
28
ask to confirm: true
29
30
# Should the voucher be unbreakable by default
31
unbreakable: true
32
33
# Should attributes be hidden by default
34
hide attributes: true
35
36
# Should the voucher be taken from the player on use?
37
remove on use: true
38
39
# Should a title be sent on redeem?
40
send title: true
41
42
# Should an actionbar be sent on redeem?
43
send actionbar: true
44
45
# Default title to be sent on redeem
46
title: '&e&lVoucher Redeemed!'
47
48
# Default subtitle to be sent on redeem
49
subtitle: '&eYou redeemed the %voucher_id% voucher!'
50
51
# Default actionbar to be sent on redeem
52
actionbar: '&e%voucher_id% voucher redeemed'
53
54
# Default fadein time in seconds for a voucher
55
title fade in: 1
56
57
# Default stay time in seconds for a voucher
58
title stay: 2
59
60
# Default fadein time in seconds for a voucher
61
title fade out: 1
62
63
# Default commands to be ran on voucher redeem
64
commands:
65
- heal %player%
66
67
# Default messages to be broadcast to the server
68
# If empty, nothing will be sent
69
# %voucher_id% -> the id of the voucher
70
# %voucher_title% -> the display name of the voucher
71
broadcast messages:
72
- '&e%player% redeemed the %voucher_id% voucher'
73
74
# Default messages to be sent to the player on voucher redeem
75
# If empty, nothing will be sent
76
# %voucher_id% -> the id of the voucher
77
# %voucher_title% -> the display name of the voucher
78
player messages:
79
- '&eYou redeemed the %voucher_id% voucher'
80
81
# The default sound to be played on redeem
82
redeem sound: ENTITY_EXPERIENCE_ORB_PICKUP
83
84
gui:
85
back button:
86
87
# Settings for the back button
88
item: ARROW
89
90
name: '&e<< Back'
91
92
lore:
93
- '&7Click the button to go'
94
- '&7back to the previous page.'
95
close button:
96
97
# Settings for the close button
98
item: BARRIER
99
100
name: '&cClose'
101
102
lore:
103
- '&7Click to close this menu.'
104
next button:
105
106
# Settings for the next button
107
item: ARROW
108
109
name: '&eNext >>'
110
111
lore:
112
- '&7Click the button to go'
113
- '&7to the next page.'
114
confirm gui:
115
116
title: '&a&lConfirm Redeem?'
117
items:
118
'yes':
119
material: LIME_STAINED_GLASS_PANE
120
name: '&a&lRedeem'
121
lore:
122
- '&7Click to redeem voucher'
123
'no':
124
material: RED_STAINED_GLASS_PANE
125
name: '&c&lCancel'
126
lore:
127
- '&7Click to cancel redeeming the voucher'
128
list gui:
129
130
title: '&eListing Vouchers'
131
bottom bar:
132
133
# Settings for the bottom bar
134
item: LIGHT_GRAY_STAINED_GLASS_PANE
135
136
name: ''
137
138
lore:
139
- ''
140
Copied!

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

1
vouchers:
2
suicide:
3
display name: '&4&lS&c&lu&4&li&c&lc&4&li&c&ld&4&le'
4
permission: vouchers.use.suicide
5
material: IRON_SWORD
6
lore:
7
- '&cYou will &4&l&nDIE&r &cif you redeem this'
8
options:
9
glowing: true
10
ask to confirm: true
11
unbreakable: true
12
hide attributes: true
13
remove on use: true
14
send title: true
15
send actionbar: true
16
execution:
17
commands:
18
- kill %player%
19
broadcast messages:
20
- '&6%player% &eRedeemed the %voucher_title% &evoucher!'
21
player messages:
22
- '&eYou redeemed the %voucher_title% &evoucher!'
23
redeem sound: ITEM_FLINTANDSTEEL_USE
24
titles:
25
title: '&e&lVoucher Redeemed!'
26
subtitle: '&eYou redeemed the %voucher_id% voucher!'
27
actionbar: '&e%voucher_id% voucher redeemed'
28
fade in: 1
29
stay: 2
30
fade out: 1
31
food:
32
display name: '&b&lF&c&lo&d&lo&6&ld'
33
permission: vouchers.use.food
34
material: BREAD
35
lore:
36
- '&aFree food'
37
options:
38
glowing: true
39
ask to confirm: true
40
unbreakable: true
41
hide attributes: true
42
remove on use: true
43
send title: true
44
send actionbar: true
45
execution:
46
commands:
47
- give %player% BREAD 8
48
broadcast messages:
49
- '&6%player% &eRedeemed the %voucher_title% &evoucher!'
50
player messages:
51
- '&eYou redeemed the %voucher_title% &evoucher!'
52
redeem sound: ENTITY_EXPERIENCE_ORB_PICKUP
53
titles:
54
title: '&e&lVoucher Redeemed!'
55
subtitle: '&eYou redeemed the %voucher_title% &evoucher!'
56
actionbar: '%voucher_title% &evoucher redeemed'
57
fade in: 1
58
stay: 2
59
fade out: 1
60
Copied!
Last modified 8mo ago