checkConfiguration

expect fun checkConfiguration(configFile: File, packConfig: PackConfig = PackConfig(), configCheck: ConfigCheck = ConfigCheck(), quietCheck: Boolean = false): ConfigCheck
expect fun checkConfiguration(packConfig: PackConfig = PackConfig(), configCheck: ConfigCheck = ConfigCheck(), quietCheck: Boolean = false): ConfigCheck
actual open override fun checkConfiguration(packConfig: PackConfig, configCheck: ConfigCheck, quietCheck: Boolean): ConfigCheck

Check the passed packConfig. If any check returns true then the server pack will not be created. In order to find out which check failed, the user has to check their serverpackcreator.log in the logs-directory.

The passed packConfig can be used to further display or use any information within, as it may be changed or otherwise altered by this method.

Return

false if all checks are passed.

Author

Griefed

Parameters

packConfig

Instance of a configuration of a modpack. Can be used to further display or use any information within, as it may be changed or otherwise altered by this method.

configCheck

Contains all encountered errors during the check of the passed configuration.

quietCheck

Whether the configuration should be printed to the console and logs. Pass false to quietly check the configuration.