From a8ad9be815e7d4c2b1d6c1c12b4a3dbbb2ad5cfa Mon Sep 17 00:00:00 2001
From: copygirl <copygirl@mcft.net>
Date: Sat, 13 Aug 2022 16:27:04 +0200
Subject: [PATCH] Update 'Server Setup'

---
 Server-Setup.md | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 Server-Setup.md

diff --git a/Server-Setup.md b/Server-Setup.md
new file mode 100644
index 0000000..6ee41bc
--- /dev/null
+++ b/Server-Setup.md
@@ -0,0 +1,21 @@
+Grab the latest [packwiz bootstrapper](https://github.com/packwiz/packwiz-installer-bootstrap/releases) and [Forge installer](https://files.minecraftforge.net/net/minecraftforge/forge/index_1.18.2.html) - the recommended version can be found in our [`pack.toml`](../src/branch/main/pack.toml). The entire installation process on the server side will look a little something like the following, assuming you have Java 17 ready and set up as the default. Otherwise just point any of the `java` commands to the correct executable.
+
+```sh
+# Download the required bootstrapper and installer.
+# Adjust if necessary, such as if a new version is available or required.
+wget https://github.com/packwiz/packwiz-installer-bootstrap/releases/download/v0.0.3/packwiz-installer-bootstrap.jar
+wget https://maven.minecraftforge.net/net/minecraftforge/forge/1.18.2-40.1.68/forge-1.18.2-40.1.68-installer.jar
+
+# Download modpack files. Also run this to update.
+java -jar packwiz-installer-bootstrap.jar -g -s server https://meowface.org/copygirl/heck/pack.toml
+# Changes made to files in `defaultconfigs` during updates are not applied to existing worlds.
+# Therefore it is advised to copy them over by running the following command.
+cp defaultconfigs/* $WORLD_LOCATION/serverconfig/
+
+# Download Minecraft and Forge files.
+java -jar forge-1.18.2-40.1.68-installer.jar --installServer
+
+# Now do the usual, accept the EULA, edit your server
+# properties, run your startup script as you're used to.
+java -jar -Xmx6G -Xms6G forge-1.18.2-40.1.68.jar nogui
+```