zip Builder
fun zipBuilder(minecraftVersion: String, destination: String, modloader: String, modloaderVersion: String): Optional<File>
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
minecraft Version
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.
modloader Version
The modloader version the modpack and server pack use.