pufferpanel / templates

PufferPanel server templates. These templates are importable via the PufferPanel web interface.
Apache License 2.0
80 stars 138 forks source link

Adding Pufferfish Template #155

Open WaldperlachFabi opened 2 years ago

WaldperlachFabi commented 2 years ago

I made a Template for the Server Software Pufferfish. Maybe you want to add it in a further Version!

{
  "name": "minecraft-pufferfish",
  "display": "Pufferfish - Minecraft",
  "type": "minecraft-java",
  "install": [
    {
      "files": [
        "https://ci.pufferfish.host/job/Pufferfish-1.18/lastSuccessfulBuild/artifact/build/libs/pufferfish-paperclip-1.18.2-R0.1-SNAPSHOT-reobf.jar"
      ],
      "type": "download"
    },
    {
      "source": "pufferfish-*.jar",
      "target": "server.jar",
      "type": "move"
    },
    {
      "target": "server.properties",
      "text": "server-ip=${ip}\nserver-port=${port}\nmotd=${motd}",
      "type": "writefile"
    },
    {
      "target": "eula.txt",
      "text": "eula=${eula}",
      "type": "writefile"
    }
  ],
  "run": {
    "stop": "stop",
    "command": "${java} -Xmx${memory}M -Dlog4j2.formatMsgNoLookups=true -jar server.jar nogui",
    "workingDirectory": "",
    "pre": [],
    "post": [],
    "environmentVars": {}
  },
  "data": {
    "eula": {
      "type": "boolean",
      "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 (true/false)",
      "required": true,
      "value": "false",
      "userEdit": true
    },
    "ip": {
      "type": "string",
      "desc": "What IP to bind the server to",
      "display": "IP",
      "required": true,
      "value": "0.0.0.0",
      "userEdit": true
    },
    "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 Pufferfish Server\\n\\u00A79 hosted on PufferPanel",
      "userEdit": true
    },
    "port": {
      "type": "integer",
      "desc": "What port to bind the server to",
      "display": "Port",
      "required": true,
      "value": "25565",
      "userEdit": true
    }
  },
  "supportedEnvironments": [
    {
      "type": "standard"
    }
  ]
}
Zoey2936 commented 2 years ago

Just a hint: You can create a pr to get it merged, then it will be automatically available on every pufferpanel, after merge, but you should maybe add an option to use other versions, like 1.17, beside the 1.18 version