fix: update paths for Hytale server and assets in build configuration

Adjusted the paths in build.gradle.kts to reference the correct locations for HytaleServer.jar and Assets.zip. Updated README to reflect changes in the server's mods folder instead of plugins folder for clarity.
This commit is contained in:
Cody Adam
2026-01-14 10:28:58 +01:00
parent b7b84b47ba
commit 2e98ce8457
3 changed files with 21 additions and 11 deletions

View File

@@ -60,7 +60,7 @@ open class RunServerTask : DefaultTask() {
fun run() {
// Create directories
val runDir = File(project.projectDir, "run").apply { mkdirs() }
val pluginsDir = File(runDir, "plugins").apply { mkdirs() }
val pluginsDir = File(runDir, "mods").apply { mkdirs() }
val jarFile = File(runDir, "server.jar")
// Cache directory for downloaded server JARs
@@ -107,7 +107,7 @@ open class RunServerTask : DefaultTask() {
// Copy server JAR to run directory
cachedJar.copyTo(jarFile, overwrite = true)
// Copy plugin JAR to plugins folder
// Copy plugin JAR to mods folder
project.tasks.findByName("shadowJar")?.outputs?.files?.firstOrNull()?.let { shadowJar ->
val targetFile = File(pluginsDir, shadowJar.name)
shadowJar.copyTo(targetFile, overwrite = true)