zipBuilder

fun zipBuilder(packConfig: Pack<*, *, *>)

Creates a ZIP-archive of the server pack previously generated. Depending on the property de.griefed.serverpackcreator.serverpack.zip.exclude.enabled, files will be excluded. To customize the files which will be excluded, see the property de.griefed.serverpackcreator.serverpack.zip.exclude

Author

Griefed

Parameters

packConfig

Contains the Minecraft version used by the modpack and server pack, whether the modloader server was installed, the modpack directory to acquire the destination of the server pack, the modloader used by the modpack and server pack and the modloader version.


abstract fun zipBuilder(minecraftVersion: String, destination: String, modloader: String, modloaderVersion: String)

Creates a ZIP-archive of specified directory. Depending on the property de.griefed.serverpackcreator.serverpack.zip.exclude.enabled, files will be excluded. To customize the files which will be excluded, the property de.griefed.serverpackcreator.serverpack.zip.exclude must be configured accordingly. The created ZIP-archive will be stored alongside the specified destination, with _server_pack.zip appended to its name.

Author

Griefed

Parameters

minecraftVersion

Determines the name of the Minecraft server JAR to exclude from the ZIP-archive if the modloader is Forge.

destination

The destination where the ZIP-archive should be created in.

modloader

The modloader the modpack and server pack use.

modloaderVersion

The modloader version the modpack and server pack use.