Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added PaperMC's Folia to Minecraft: Java Edition template #298

Open
wants to merge 1 commit into
base: v3
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 31 additions & 7 deletions minecraft/minecraft.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@
"value": "paper",
"display": "Paper"
},
{
"value": "paper-folia",
"display": "Paper Folia"
},
{
"value": "spigot",
"display": "Spigot"
Expand Down Expand Up @@ -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
},
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -345,4 +369,4 @@
"query": {
"type": "minecraft"
}
}
}