serverPath

val MinecraftServer.serverPath: Path(source)

Deprecated

Minecraft now offers a 'serverDirectory' property, use that instead.

Replace with

import kotlin.io.path.absolute
serverDirectory.absolute()

Returns the current run directory of the server as an absolute Path.