checkServerPacksForIncrement

expect fun checkServerPacksForIncrement(source: String, destination: String): String
actual open override fun checkServerPacksForIncrement(source: String, destination: String): String

Check whether a server pack for the given destination already exists and get an incrementor based on whether one exists, how many, or none exist. Think if this as the incrementation Windows does when a file of the same name is copied. foo.bar becomes foo (1).bar etc.

Return

An incremented number, based on whether a server pack of the same name already exists.

Author

Griefed

Parameters

source

The name of the modpack.

destination

The name of the server pack about to be generated.