checkConfiguration

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

Check the passed configuration-file. 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.

Return

false if the configuration has passed all tests.

Author

Griefed

Parameters

configFile

The configuration file to check. Must either be an existing file to load a configuration from or null if you want to use the passed configuration model.

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.


fun checkConfiguration(packConfig: PackConfig, configCheck: ConfigCheck = ConfigCheck(), quietCheck: Boolean = false): 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.