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

Adding Pufferfish Template #155

Open
WaldperlachFabi opened this issue May 23, 2022 · 1 comment
Open

Adding Pufferfish Template #155

WaldperlachFabi opened this issue May 23, 2022 · 1 comment

Comments

@WaldperlachFabi
Copy link

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants