About YAML (YML files)
You break it. You fix it.
YAML has very specific syntax spacing and does NOT tolerate any misplaced/missing spaces/symbols! Validate it!
When editing your YML files, please make sure you adhere to YAML's very specific syntaxing and formatting outside of any double-quoted-text lines.
YAML Formatting:
There will be a SPACE after any
:
character and the following valueEvery 'Indent' level you see in the file is TWO SPACES for every level. (NO Tab)
Any line that begins with a
#
is a comment and will be ignored by the pluginif you encounter any errors after altering your file, or are new to editing these files. USE AN ONLINE YAML PARSER to validate your file!. It will immediately identify any formatting errors that you will need to fix before proceeding
Common errors:
Bad spacing: (does not conform to even-numbered-space-character-indenting)
Missing space: after an expected value a space is missing.
ex (displayname:"<Missing Space Between The Colon And Double Quotes")
Missing 'block end/start': you forgot to surround the value with double-quotes somewhere
Absolutely NO TAB characters
Quick Explanation for each file:
Shops Files:
spacing for files in the shops folder:
0 (ZERO) spaces before initial page declaration
2 (TWO) spaces before the page number
4 (FOUR) spaces before gui-rows setting and the items declaration
6 (SIX) spaces before the items ID
8 (EIGHT) spaces before the items properties
Sections Files:
spacing for files in the sections folder:
2 (TWO) spaces before 'material', 'mode' and 'name'
Config.yml:
Spacing for config.yml:
Almost everything will have no spacing before it already
the same 2-spaces-for-every-sub-setting applies here the same as other YML files.
'Full' Technical Explanation: (it's complicated. and simple)
Last updated