api
fun api(properties: File = File("serverpackcreator.properties"), runSetup: Boolean = true): ApiWrapper
Acquire a new instance of the ServerPackCreator API.
Author
Griefed
Parameters
properties
A ServerPackCreator properties-file to use for API initialization. This files may contain configurations for the home-directory and many other settings. For details, see the Wiki.
run Setup
Whether to run the initial setup, creating and copying all required files to the filesystem and ensuring the home-directory is properly set up and available to the API.