Skip to content

Instantly share code, notes, and snippets.

@tshipenchko
Created August 29, 2021 11:07
Show Gist options
  • Save tshipenchko/0ab1d9ffd5ede65557caaa909f240ad3 to your computer and use it in GitHub Desktop.
Save tshipenchko/0ab1d9ffd5ede65557caaa909f240ad3 to your computer and use it in GitHub Desktop.
Yatopia Pufferpanel template
{
"name": "minecraft-yatopia",
"display": "Yatopia - Minecraft",
"type": "minecraft-java",
"install": [
{
"files": [
"https://api.yatopiamc.org/v2/build/${build}/download?branch=ver/${version}"
],
"type": "download"
},
{
"source": "download",
"target": "yatopia.jar",
"type": "move"
},
{
"target": "server.properties",
"text": "server-ip=${ip}\nserver-port=${port}\nmotd=${motd}\n",
"type": "writefile"
},
{
"target": "eula.txt",
"text": "eula=${eula}",
"type": "writefile"
}
],
"run": {
"stop": "stop",
"command": "${java} -Xmx${memory}M -Dterminal.jline=false -Dterminal.ansi=true -Djline.terminal=jline.UnsupportedTerminal -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -jar yatopia.jar",
"pre": [],
"post": [],
"environmentVars": {}
},
"data": {
"build": {
"type": "string",
"desc": "Build of Yatopia to install (<a href='https://yatopiamc.org/download.html'>Yatopia version build</a>). Must be specified as a build number, e.g. 118",
"display": "build",
"required": true,
"value": "118"
},
"eula": {
"type": "boolean",
"desc": "Do you agree to the Minecraft EULA?",
"display": "EULA Agreement (true/false)",
"required": true,
"value": "false"
},
"ip": {
"type": "string",
"desc": "What IP to bind the server to",
"display": "IP",
"required": true,
"value": "0.0.0.0"
},
"java": {
"type": "string",
"desc": "\"java\" for system standard, else direct path to java",
"display": "path to java executable",
"required": true,
"value": "java",
"userEdit": true
},
"memory": {
"type": "integer",
"desc": "How much memory in MB to allocate to the Java Heap",
"display": "Memory (MB)",
"required": true,
"value": "1024"
},
"motd": {
"type": "string",
"desc": "This is the message that is displayed in the server list of the client, below the name. The MOTD does support <a href='https://minecraft.gamepedia.com/Formatting_codes' target='_blank'>color and formatting codes</a>.",
"display": "MOTD message of the day",
"required": true,
"value": "A Minecraft Server\\n\\u00A79 hosted on PufferPanel"
},
"port": {
"type": "integer",
"desc": "What port to bind the server to",
"display": "Port",
"required": true,
"value": "25565"
},
"version": {
"type": "string",
"desc": "Version Of Minecraft to install. Lowest supported version is \"1.16.2\"",
"display": "Version",
"required": true,
"value": "1.16.5"
}
},
"environment": {
"type": "standard"
},
"supportedEnvironments": [
{
"type": "standard"
},
{
"bindings": {},
"image": "openjdk:16",
"networkMode": "host",
"networkName": "",
"portBindings": [],
"type": "docker"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment