Welcome to the PufferPanel community forums! If you need help please register an account and post in the Support category.

Thermos template (mod + plugin server for 1.7.10 minecraft)



  • Hi,
    I've made a thermos template for puffer panel, it will install a minecraft modded server which supports spigot plugins. It also supports all spigot options...

    **How to install? **
    1) Type this command into ssh :

    curl -o /var/lib/pufferd/templates/thermos.json https://paste.ee/r/9JQBT && chown pufferd:pufferd /var/lib/pufferd/templates/thermos.json
    

    OR
    2)
    Request me the file on discord and drop it to

    /var/lib/pufferd/templates
    

    **Discord **: DarkScientist#9449
    **How does it work? **
    It downloads a zip file from a web server I own.
    Into this zip file, there are 3 files :
    -A libraries.zip which contains the required libraries for Thermos;
    -The forge installer to install server;
    -The Thermos jar file.

    It unzips that and install the server.
    It renames the files into installer.jar, server.jar and thermos.jar. The file we need to execute to run the server is thermos.jar

    Once the server is installed, it replaces the libraries and we're good!

    Enjoy!

    JSON :

    {
      "pufferd": {
        "type": "java",
        "display": "ThermosForge - Minecraft",
        "install": {
          "commands": [
            {
              "type": "download",
              "files":
    		  "https://www.hynity.com/utils.zip"
            },
    	{
              "commands": [
                "unzip utils.zip"
              ],
              "type":"command"
            },
            {
              "source": "forge-*.jar",
              "target": "installer.jar",
              "type": "move"
            },
            {
              "commands": [
                "java -jar installer.jar --installServer"
              ],
              "type": "command"
            },
            {
              "type": "writefile",
              "text": "server-ip=${ip}\nserver-port=${port}\nmotd=${motd}\n",
              "target": "server.properties"
            },
            {
              "type": "writefile",
              "text": "eula=${eula}",
              "target": "eula.txt"
            },
            {
              "source": "forge-*-universal.jar",
              "target": "server.jar",
              "type": "move"
            },
            {
              "source":"Thermos-*.jar",
              "target":"thermos.jar",
              "type":"move"
            },
            {
              "commands":[
               "rm -R -f libraries/",
               "unzip libraries.zip"
             ],
              "type":"command"
            }
          ]
        },
        "run": {
          "stop": "stop",
          "pre": [],
          "post": [],
          "arguments": [
            "-Xmx${memory}M",
            "-jar",
            "thermos.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,
            "type": "integer"
          },
          "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 (true/false)",
            "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
          }
        }
      }
    }
    
    

Log in to reply
 

4
Online

963
Users

931
Topics

3.7k
Posts