createStartScripts

fun createStartScripts(packConfig: Pack<*, *, *>, isLocal: Boolean)

Create start-scripts for the generated server pack using the templates the user has defined for their instance of ServerPackCreator in the property de.griefed.serverpackcreator.serverpack.script.template.

Author

Griefed

Parameters

packConfig

Configuration model containing modpack specific values. keys to be replaced with their respective values in the start scripts, as well as the modpack directory from which the destination of the server pack is acquired.

isLocal

Whether the start scripts should be created for a locally usable server pack. Use false if the start scripts should be created for a server pack about to be zipped.


abstract fun createStartScripts(scriptSettings: <Error class: unknown class><String, String>, destination: String, isLocal: Boolean)

Create start-scripts for the generated server pack using the templates the user has defined for their instance of ServerPackCreator in the property de.griefed.serverpackcreator.serverpack.script.template.

Author

Griefed

Parameters

scriptSettings

Key-value pairs to replace in the script. A given key in the script is replaced with its value.

destination

The destination where the scripts should be created in.

isLocal

Whether the start scripts should be created for a locally usable server pack. Use false if the start scripts should be created for a server pack about to be zipped.