Skip to content

@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 ​

readonly config: 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>; }>

footer: SectionValues<{ lines: Field<readonly TemplateLineConfig[]>; }>

config.general ​

general: SectionValues<{ enabled: Field<boolean>; max_players: Field<number>; refresh_ticks: Field<number>; version: Field<number>; }>

config.header ​

header: SectionValues<{ lines: Field<readonly TemplateLineConfig[]>; }>

config.placeholders ​

placeholders: SectionValues<{ missing_provider: Field<string>; provider: Field<string>; unresolved: Field<string>; }>

warnings ​

readonly warnings: readonly string[]

Throws ​

When the file is not valid TOML. The file is not changed.

pumpkin-plugins documentation