From 3970a02638503a3205a1db7a141f1740822149cd Mon Sep 17 00:00:00 2001 From: Gethec <4926029+Gethec@users.noreply.github.com> Date: Wed, 22 Jun 2022 23:31:40 -0500 Subject: [PATCH] Minor adjustments --- Terraria/tModLoader/startServer.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Terraria/tModLoader/startServer.sh b/Terraria/tModLoader/startServer.sh index 7e47b92..367cdb4 100644 --- a/Terraria/tModLoader/startServer.sh +++ b/Terraria/tModLoader/startServer.sh @@ -1,4 +1,5 @@ #!/bin/bash +RED='\033[0;31m' if [ "$WORLD_SIZE" == "0" ] then @@ -6,7 +7,8 @@ then then echo \n | ./DedicatedServerUtils/Setup_tModLoaderServer.sh && ./LaunchUtils/ScriptCaller.sh -server -ip 0.0.0.0 -port ${SERVER_PORT} -noupnp -maxplayers ${MAX_PLAYERS} -password "${SERVER_PASSWORD}" -motd "${MOTD}" -world ~/saves/Worlds/${WORLD_NAME}.wld$( [ \"$SECURE_SERVER\" == \"0\" ] || printf %s ' -secure' ) -savedirectory ~/ -tmlsavedirectory ~/saves -modpath ~/mods else - echo -e "Auto-generation is disabled and the specified world file is not present! Upload your world file with the correct name, or change startup settings to generate a world" + echo -e "${RED}Auto-generation is disabled and the specified world file is not present! Upload your world file with the correct name, or change startup settings to generate a world" + exit 1 fi else echo \n | ./DedicatedServerUtils/Setup_tModLoaderServer.sh && ./LaunchUtils/ScriptCaller.sh -server -ip 0.0.0.0 -port ${SERVER_PORT} -noupnp -maxplayers ${MAX_PLAYERS} -password "${SERVER_PASSWORD}" -motd "${MOTD}" -world ~/saves/Worlds/${WORLD_NAME}.wld -autocreate ${WORLD_SIZE} -seed ${WORLD_SEED} -worldname "${WORLD_NAME}"$( [ \"$SECURE_SERVER\" == \"0\" ] || printf %s ' -secure' ) -savedirectory ~/ -tmlsavedirectory ~/saves -modpath ~/mods