diff --git a/minecraft/minecraft.json b/minecraft/minecraft.json index d6fab6d..06d52de 100644 --- a/minecraft/minecraft.json +++ b/minecraft/minecraft.json @@ -75,6 +75,10 @@ "value": "paper", "display": "Paper" }, + { + "value": "paper-folia", + "display": "Paper Folia" + }, { "value": "spigot", "display": "Spigot" @@ -109,7 +113,7 @@ "type": "string", "value": "latest", "display": "Version", - "desc": "Version of Minecraft you wish to install. It is best to put a version in, as latest may not work with all server software.", + "desc": "Version of Minecraft you wish to install. It is best to put a version in, as latest may not work with all server software. Ignored if Folia is being used.", "required": true, "userEdit": true }, @@ -263,6 +267,26 @@ "source": "spigot-*.jar", "target": "server.jar" }, + { + "if": "modlauncher == 'paper-folia'", + "type": "download", + "files": [ + "https://nightly.link/Slackadays/FoliaToGo/workflows/folia/main/FoliaToGo.zip" + ] + }, + { + "if": "modlauncher == 'paper-folia'", + "type": "command", + "commands": [ + "unzip FoliaToGo.zip -d ." + ] + }, + { + "if": "modlauncher == 'paper-folia'", + "type": "move", + "target": "server.jar", + "source": "folia-paperclip-*.jar" + }, { "if": "!file_exists(\"server.properties\")", "type": "writefile", @@ -311,11 +335,11 @@ ], "pre": [ { - "if": "modlauncher == 'forge'", - "type": "resolveforgeversion", - "minecraftVersion": "${version}", - "version": "${forgebuild}", - "outputVariable": "resolvedForgeVersion" + "if": "modlauncher == 'forge'", + "type": "resolveforgeversion", + "minecraftVersion": "${version}", + "version": "${forgebuild}", + "outputVariable": "resolvedForgeVersion" } ], "stop": "stop", @@ -345,4 +369,4 @@ "query": { "type": "minecraft" } -} +} \ No newline at end of file