########################################
# REMEMBER:
#   Escape \ and : in your Java path on Windows with another \
#   Example:
#     From: C:\Program Files\Eclipse Adoptium\jdk-17.0.9.9-hotspot\bin\java.exe
#     To:   C\:\\Program Files\\Eclipse Adoptium\\jdk-17.0.9.9-hotspot\\bin\\java.exe
#   More on escape characters at https://en.wikipedia.org/wiki/Escape_character
#
# Variables are not reloaded between automatic restarts. If you've made changes to your
#   variables and you want them to take effect, stop the server and script, then
#   re-run it.
########################################


########################################
# SERVER SETTINGS
########################################

# Enables automatic restart if the server crashes.
RESTART=false

# Allows to enable/disable user confirmation upon graceful script ending.
WAIT_FOR_USER_INPUT=true

# Path the Java executable/binary the server should use for running.
# Default is `java`, so it points towards the system-default, if you have one.
# Set this to an absolute path, as per the example above in the "REMEMBER"-part,
#   if you want to force the server to use a different Java installation/version.
#   When setting a custom path, set SKIP_JAVA_CHECK to true.
JAVA="java"

# Arguments to pass to the JVM / your server.
# Edit Xmx and Xms numbers to change the amount of RAM allocated. 
JAVA_ARGS="-Xmx8G -Xms8G -XX:+UseCompactObjectHeaders"

# Allows to disable/enable the compatibility check of your Minecraft version 
#   and the provided Java version, as well as the automatic installation of a
#   compatible Java version, should JAVA be set to 'java'.
SKIP_JAVA_CHECK=false

########################################
# MODPACK SETTINGS
#
# Do not change unless you intend to edit the modpack
########################################

MINECRAFT_VERSION=26.2
MODLOADER=Fabric
MODLOADER_VERSION=0.19.3
FABRIC_INSTALLER_VERSION=1.1.1
RECOMMENDED_JAVA_VERSION=25

########################################
# JAVA INSTALLATION
########################################

# For an extensive list of available vendors, check out
#   https://github.com/Jabba-Team/index/blob/main/index.json
#   Note - For the installation to take place:
#   - SKIP_JAVA_CHECK must be set to 'false'
#   - JAVA be set to 'java'
#   - No 'java' command be available OR
#   - The available Java version behind 'java' be incompatible with your Minecraft version.
JDK_VENDOR=temurin

JABBA_INSTALL_URL_SH=https://github.com/Jabba-Team/jabba/raw/main/install.sh
JABBA_INSTALL_URL_PS=https://github.com/Jabba-Team/jabba/raw/main/install.ps1

# Has no effect on the installation of Jabba when using PowerShell.
JABBA_INSTALL_VERSION=0.14.0

# Allows to enable/disable the force-refreshing of the server.jar
#   when using Forge or NeoForge as your modloader. Force-refreshing means the file is replaced with a freshly
#   downloaded one every time you run the start scripts.
SERVERSTARTERJAR_FORCE_FETCH=true

# Allows to manually set the version of the server.jar downloaded by the scripts.
#   If you want to always use the latest version, set this to exactly "latest". For a specific version, see
#   https://github.com/neoforged/ServerStarterJar/releases and use the tags on the left as the version,
#   e.g. 0.1.24 or 0.1.25. When setting a specific version, make sure the release you pick actually has a server.jar
#   available for download. When the download fails with the "latest"-setting, then pick a specific one and/or
#   contact the devs of the ServerStarterJar about the latest release not having a server.jar to download.
SERVERSTARTERJAR_VERSION=latest

########################################
# ADVANCED
########################################

# Files listed here will be permanently deleted during cleanup.
#   (Cleanup occurs upon calling the start-script with either the --cleanup argument,
#   or when the script detected a previous run with differing versions/modloaders)
#   ⚠ Edit at your own risk — incorrect values can cause data loss.
CLEANUP="libraries,run.sh,run.bat,*installer.jar,*installer.jar.log,server.jar,.mixin.out,ldlib,local,fabric-server-launcher.jar,fabric-server-launch.jar,.fabric-installer,fabric-installer.jar,.fabric versions"