@pumpkin-plugins/tab-display API / config / loadTabDisplayConfig
Function: loadTabDisplayConfig()
loadTabDisplayConfig(
store):object
Defined in: packages/tab-display/src/config.ts:134
Loads the settings file, creating it on first start. Each invalid value falls back to its default and is listed in warnings; the file is then left unchanged so the user can fix it.
Parameters
store
ConfigStore
Returns
object
config
readonlyconfig:object
config.entry
entry:
SectionValues<{bold:Field<boolean>;color:Field<string>;enabled:Field<boolean>;italic:Field<boolean>;strikethrough:Field<boolean>;text:Field<string>;underlined:Field<boolean>; }>
config.footer
footer:
SectionValues<{lines:Field<readonlyTemplateLineConfig[]>; }>
config.general
general:
SectionValues<{enabled:Field<boolean>;max_players:Field<number>;refresh_ticks:Field<number>;version:Field<number>; }>
config.header
header:
SectionValues<{lines:Field<readonlyTemplateLineConfig[]>; }>
config.placeholders
placeholders:
SectionValues<{missing_provider:Field<string>;provider:Field<string>;unresolved:Field<string>; }>
warnings
readonlywarnings: readonlystring[]
Throws
When the file is not valid TOML. The file is not changed.