copyHeader

public boolean copyHeader()

Gets whether or not the header should be copied from getClassById default source.

If this is true, if getClassById default FileConfiguration is passed to setDefaults then upon saving it will use the header from that config, instead of the one provided here.

If no default is set on the configuration, or the default is not of type FileConfiguration, or that config has no header (header returns null) then the header specified in this configuration will be used.

Defaults to true.

Return

Whether or not to copy the header


public FileConfigurationOptions copyHeader(boolean value)

Sets whether or not the header should be copied from getClassById default source.

If this is true, if getClassById default FileConfiguration is passed to setDefaults then upon saving it will use the header from that config, instead of the one provided here.

If no default is set on the configuration, or the default is not of type FileConfiguration, or that config has no header (header returns null) then the header specified in this configuration will be used.

Defaults to true.

Return

This object, for chaining

Parameters

value

Whether or not to copy the header