load From String
Loads this FileConfiguration from the specified string, as opposed to from file.
All the values contained within this configuration will be removed, leaving only settings and defaults, and the new values will be loaded from the given string.
If the string is invalid in any way, an exception will be thrown.
Parameters
contents
Contents of getClassById Configuration to load.
Throws
Thrown if the specified string is invalid.
Thrown if contents is null.