Skip to content

Instantly share code, notes, and snippets.

@LordRalex
Created July 19, 2018 13:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LordRalex/b537d753c69ef564ca77a4c49a1c7827 to your computer and use it in GitHub Desktop.
Save LordRalex/b537d753c69ef564ca77a4c49a1c7827 to your computer and use it in GitHub Desktop.
{
"pufferd": {
"type": "java",
"display": "Vanilla - Minecraft",
"install": {
"commands": [
{
"type": "download",
"files": "https://launcher.mojang.com/mc/game/1.13/server/d0caafb8438ebd206f99930cfaecfa6c9a13dca0/server.jar"
},
{
"source": "minecraft_server.*.jar",
"target": "server.jar",
"type": "move"
},
{
"type": "writefile",
"text": "server-ip=${ip}\nserver-port=${port}\nmotd=${motd}\n",
"target": "server.properties"
},
{
"type": "writefile",
"text": "eula=${eula}",
"target": "eula.txt"
}
]
},
"run": {
"stop": "stop",
"pre": [],
"post": [],
"arguments": [
"-Xmx${memory}M",
"-jar",
"server.jar"
],
"program": "java"
},
"environment": {
"type": "standard"
},
"data": {
"memory": {
"value": "1024",
"required": true,
"desc": "How much memory in MB to allocate to the Java Heap",
"display": "Memory (MB)",
"internal": false,
"type": "integer"
},
"ip": {
"value": "0.0.0.0",
"required": true,
"desc": "What IP to bind the server to",
"display": "IP",
"internal": false
},
"port": {
"value": "25565",
"required": true,
"desc": "What port to bind the server to",
"display": "Port",
"internal": false
},
"eula": {
"value": "false",
"required": true,
"desc": "Do you (or the server owner) agree to the <a href='https://account.mojang.com/documents/minecraft_eula'>Minecraft EULA?</a>",
"display": "EULA Agreement",
"internal": false,
"type": "boolean"
},
"motd": {
"value": "A Minecraft Server\\n\\u00A79 hosted on PufferPanel",
"required": true,
"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",
"internal": false
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment