vouchers.yml
Vouchers configuration for v2.0.0
Format
Below you will find a detailed structure of a voucher, with all the available options and what values they require. Please see to the Resources section to learn more about each type of value.
Resources
Java (8)
Boolean - true or false
Short - whole numbers without decimal points with values between -32,768 and +32,767
Integer - similar to Short, but the range is between -2.1 billions and + 2.1 billions
Long - similar to Short and Integer but the limits are much larger (~9 quintillions)
Float - numbers with decimal points, with values between 0.0 and 1.0 in Minecraft
String - the name Java uses for text, nothing special about this one
List<Type> - a list that expects elements of the said type, for example
lore: List<String>
expects a list of texts (Strings) that will be set as lore
RegEx - regular expression
Spigot (latest)
PatternType - different patterns a Banner can have
ColorString
Format: <red>,<green>,<blue>
(e.g. 255,000,000
), RRGGBB
(e.g. FF0000
HEX) or the name of a Color (e.g. RED
)
Example:
EnchantmentString
Format: Enchantment;<level>
Enchantment: String, the name of an Enchantment (e.g.
MENDING
), for 1.13+ could also use thenamespace:key
format (e.g.minecraft:sharpness
)<level>: Integer, the level of the enchantment
Example:
LimitType
Values: GLOBAL, PERSONAL, NONE (default, if disabled)
Message
Format: Type;<message>
or <message>
and CHAT will be the default Type
Type: ACTION_BAR, CHAT, TITLE
<message>: String, the actual message that will be sent, use
[n]
for TITLE to separate the title from subtitle
Examples:
Option
Format: regex:<expression>
for RegEx or just a normal String
Examples: Allow the voucher to be used at spawn
or on a "player world", same thing applies for regions.
BannerPatternString
Format: PatternType;DyeColor
PatternType: String, the name of a PatternType (e.g.
CREEPER
)DyeColor: String, the name of a DyeColor (e.g.
RED
)
Example
SoundObject
Format:
sound: String, the name of a sound ('namespace:path' or just 'path' for vanilla sounds from the 'minecraft' namespace), example:
minecraft:block.note_block.pling
or simplyblock.note_block.pling
source: String, the name of a sound Source, example:
MASTER
volume: Float, the volume of the sound, example:
0.25
pitch: Float, the pitch of the sound, example:
1.50
Example:
TextureString
Format: Type;<value>
or <value>
and BASE64 will be the default Type
Type: BASE64, HDB, PLAYER
<value>:
BASE64: String, texture value (e.g.
BASE64;eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZGNlYjE3MDhkNTQwNGVmMzI2MTAzZTdiNjA1NTljOTE3OGYzZGNlNzI5MDA3YWM5YTBiNDk4YmRlYmU0NjEwNyJ9fX0=
)HDB: Integer, the id of a head from HeadDatabase (e.g.
HDB;21899
)PLAYER: String, the name of a player (e.g.
PLAYER;MHF_Chest
)
Last updated