Return All YAML (un)loaded in memory (Expression) — skript-yaml
Addon: skript-yaml · Category: Expression · Since: 1.0.0
Syntax
[(the|all [(of the|the)])] [currently] loaded y[a]ml [files] [from (director(y|ies) %-strings%|all directories)]Description
Returns a list of all "cached" yaml file IDs or from a certain directory or list of directories. - Can also return list of directories. - Can also return list of unloaded yaml files from a certain directory or list of directories. - To remain consistent with the load effect, the list of unloaded yaml files will not include the server path so that you don't have to use the non-relative option. - Some of the listed unloaded yaml files can include the server path which will require you to use the non-relative option in the yaml load effect.
Examples
set {_list::*} to the currently loaded yaml files
broadcast "%{_list::*}%"
loop the loaded yaml
broadcast loop-value
loop the loaded yaml from directory "plugins\skript-yaml"
broadcast loop-value
loop the loaded yaml directories
broadcast loop-value
loop the unloaded yaml from directory "plugins\skript-yaml"
broadcast loop-value