Server Setup: Difference between revisions
Content deleted Content added
m Replaced Java9 with Java 17+, nobody should be using Java 9. |
added note about stability and version numbers; minor grammatical adjustments |
||
Line 4: | Line 4: | ||
{{Box-round|title=Servers on newer Java versions (17+)|Java 17+ servers should be fully configured as downloaded. For additional instructions consult https://github.com/GTNewHorizons/lwjgl3ify#server}} |
{{Box-round|title=Servers on newer Java versions (17+)|Java 17+ servers should be fully configured as downloaded. For additional instructions consult https://github.com/GTNewHorizons/lwjgl3ify#server}} |
||
==Server update (All Platforms)== |
==Server update (All Platforms)== |
||
# Check in [[Dev Release Stability]] that the version you want to update to is stable enough. |
# Check in [[Dev Release Stability]] that the version you want to update to is stable enough. Note that versions ending with `.0` are generally considered stable, e.g., `2.3.0`. |
||
# [http://downloads.gtnewhorizons.com/ServerPacks/ Download] a new server version of GTNH. |
# [http://downloads.gtnewhorizons.com/ServerPacks/ Download] a new server version of GTNH. |
||
# Backup your server folder. |
# Backup your server folder. |
||
# Delete the <code>config</code>, <code>libraries</code>, <code>mods</code>, <code>resources</code> (if present) and <code>scripts</code> folders from your server folder. e.g |
# Delete the <code>config</code>, <code>libraries</code>, <code>mods</code>, <code>resources</code> (if present) and <code>scripts</code> folders from your server folder. e.g., on a Linux server, use the following commands: <syntaxhighlight lang="bash"> |
||
cd you_server_folder |
cd you_server_folder |
||
rm -r config libraries mods resources scripts |
rm -r config libraries mods resources scripts |
||
</syntaxhighlight> |
</syntaxhighlight> |
||
# Replace the deleted folders with the ones from the downloaded archive. |
# Replace the deleted folders with the ones from the downloaded archive. |
||
# |
# Transfer any customized config settings. Use your backup as a reference. |
||
# Move over the JourneymapServer folder. This folder contains your world UUID inside a config file. If this file is lost server would generate new map UUID and clients would lose their journeymap map data for your server. |
# Move over the JourneymapServer folder. This folder contains your world UUID inside a config file. If this file is lost, the server would generate a new map UUID and clients would lose their journeymap map data for your server. |
||
# If you are using the Java 17+ version, then update and use these files from the downloaded archive to start the server: <code>lwjgl3ify-forgePatches.jar</code>, <code>java9args.txt</code>, <code>startserver-java9.bat</code> and <code>startserver-java9.sh</code>. |
# If you are using the Java 17+ version, then update and use these files from the downloaded archive to start the server: <code>lwjgl3ify-forgePatches.jar</code>, <code>java9args.txt</code>, <code>startserver-java9.bat</code> and <code>startserver-java9.sh</code>. |
||