Load all YAML from directory (Effect) — skript-yaml

Addon: skript-yaml · Category: Effect · Since: 1.2

Syntax

[re]load all y[a]ml from [(non[(-| )]relative)] director(y|ies) %strings%

Description

Loads a directory YAML files into memory. - The input is a directory (ie. "plugins/MyAwesomePlugin/"). - If for example a file in that directory is named test.yml then the output ID would be 'plugins/MyAwesomePlugin/test.yml' - Using the optional filename ID would output `test.yml`

Examples

#This isn't something you would really want to do, or is it?
load all yaml from directory "/plugins/skript-yaml/test"
loop all of the currently loaded yaml files:
	loop yaml nodes "" from loop-value-1:
		loop yaml nodes loop-value-2 from loop-value-1:
			broadcast yaml value "%loop-value-2%.%loop-value-3%" from loop-value-1

View source