#YAML Error.
1 messages · Page 1 of 1 (latest)
so I would just not make it a parent
ThisIsValid:
example1: true
example2: 'example_value'
ThisIsNotValid: 'because of this'
example1: true
example2: 'example_value'
so in your case, an example would be this
message:
must_be_player_error: 'You must be a player to execute this command!'
no_permission_error: '&cYou do not have permission to execute this command!'
kitselector:
kit_knight: '&e&lKIT KNIGHT'
example_parent:
lore1: 'Lore 1'
lore2: 'Lore 2'
permissions:
kit_command: 'permission.kitcommand'
reload_config: 'permission.reload_config'
So I can put
but I added an arbitrary parent ("example_parent"), so it probably won't be valid within your use case
message:
must_be_player_error: 'You must be a player to execute this command!'
no_permission_error: '&cYou do not have permission to execute this command!'
kitselector:
kit_knight: '&e&lKIT KNIGHT'
kit_knight_lore:
lore1: 'Lore 1'
lore2: 'Lore 2'
permissions:
kit_command: 'permission.kitcommand'
reload_config: 'permission.reload_config'
this would be good?
Yes; that is valid
Thank you friend. Extremly helpful
np!
Somewhat?
It worked..
kind of
It gave me the second lore on the item
so 'Lore 2'
but not the first one
Probably easier just to use a list
I'm kind of a beginner, so I dont really know how to do that, let alone use a list with config
message:
must_be_player_error: 'You must be a player to execute this command!'
no_permission_error: '&cYou do not have permission to execute this command!'
kitselector:
kit_knight: '&e&lKIT KNIGHT'
kit_knight_lore:
- 'Lore 1'
- 'Lore 2'
permissions:
kit_command: 'permission.kitcommand'
reload_config: 'permission.reload_config'
would I need to change any code?
Depends on how you are working with the yaml
For reference, the actual yaml specification can be found here https://yaml.org/spec/1.2.2/
Spigot has some degree of yaml support via https://hub.spigotmc.org/javadocs/spigot/org/bukkit/configuration/file/FileConfiguration.html