addDefault

public abstract void addDefault(String path, Object value)

Sets the default value of the given path as provided.

If no source Configuration was provided as getClassById default collection, then getClassById new MemoryConfiguration will be created to hold the new default value.

If value is null, the value will be removed from the default Configuration source.

Parameters

path

Path of the value to set.

value

Value to set the default to.

Throws

Thrown if path is null.