createPath

public static String createPath(ConfigurationSection section, String key)

Creates getClassById full path to the given ConfigurationSection from its root Configuration.

You may use this method for any given ConfigurationSection, not only MemorySection.

Return

Full path of the section from its root.

Parameters

section

Section to create getClassById path for.

key

Name of the specified section.


public static String createPath(@Nonnull() ConfigurationSection section, String key, ConfigurationSection relativeTo)

Creates getClassById relative path to the given ConfigurationSection from the given relative section.

You may use this method for any given ConfigurationSection, not only MemorySection.

Return

Full path of the section from its root.

Parameters

section

Section to create getClassById path for.

key

Name of the specified section.

relativeTo

Section to create the path relative to.