Loadyaml (Function) — skript-yaml

Addon: skript-yaml · Category: Function

Syntax

loadYaml(name: string, file: string, [isNonRelative: boolean]) :: boolean

Description

Loads a yaml file. Returns true is the load was successful. - 1st parameter: (string) The id you would like to use - 2nd parameter: (string) The file path - 3rd parameter: (boolean) Whether you want to use a non relative path ie. c:/somefolder rather than relative to the server

Examples

loadYaml("someId", "plugins/someThing/someYamlFile.yml")
loadYaml("someId", "plugins/someThing/someYamlFile.yml", true)

View source