From bb6a221fd0721fe257d462c48bb7c73300075543 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Tue, 9 Apr 2019 17:22:28 +0100 Subject: [PATCH 1/3] correct port naming --- lgsm/functions/info_messages.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lgsm/functions/info_messages.sh b/lgsm/functions/info_messages.sh index 5080334dc5..020b1b2389 100644 --- a/lgsm/functions/info_messages.sh +++ b/lgsm/functions/info_messages.sh @@ -78,7 +78,7 @@ fn_info_message_performance(){ echo -e "${blue}CPU Model:\t${default}${cpumodel}" echo -e "${blue}CPU Cores:\t${default}${cpucores}" echo -e "${blue}CPU Frequency:\t${default}${cpufreuency}" - } | column -s $'\t' -t + } | column -s $'\t' -t echo -e "" { echo -e "${blue}Mem:\t${blue}total\tused\tfree\tcached\tavailable${default}" @@ -737,8 +737,8 @@ fn_info_message_minecraft(){ { echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL" echo -e "> Game\tINBOUND\t${port}\ttcp" - echo -e "> Game\tINBOUND\t${queryport}\tudp" - echo -e "> Game\tINBOUND\t${rconport}\ttcp" + echo -e "> Query\tINBOUND\t${queryport}\tudp" + echo -e "> Rcon\tINBOUND\t${rconport}\ttcp" } | column -s $'\t' -t } From 438317e5d674d36b72bf28465ac88cda0d13327a Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Tue, 9 Apr 2019 17:49:47 +0100 Subject: [PATCH 2/3] fix(mcserver):correct port info --- lgsm/functions/info_config.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lgsm/functions/info_config.sh b/lgsm/functions/info_config.sh index 5c07f44ad3..53b7637c6d 100644 --- a/lgsm/functions/info_config.sh +++ b/lgsm/functions/info_config.sh @@ -320,6 +320,7 @@ fn_info_config_inss(){ rconport=${rconport:-"0"} fi } + fn_info_config_minecraft(){ if [ ! -f "${servercfgfullpath}" ]; then servername="${unavailable}" @@ -329,7 +330,6 @@ fn_info_config_minecraft(){ port="${zero}" queryport="${zero}" queryenabled="${unavailable}" - rconport="${zero}" gamemode="${unavailable}" gameworld="${unavailable}" else @@ -338,9 +338,8 @@ fn_info_config_minecraft(){ rconport=$(grep "rcon.port" "${servercfgfullpath}" | grep -v "#" | tr -cd '[:digit:]') maxplayers=$(grep "max-players" "${servercfgfullpath}" | grep -v "#" | tr -cd '[:digit:]') port=$(grep "server-port" "${servercfgfullpath}" | grep -v "#" | tr -cd '[:digit:]') - queryport=$(grep "query.port" "${servercfgfullpath}" | grep -v "#" | tr -cd '[:digit:]') + queryport="${port}" queryenabled=$(grep "enable-query" "${servercfgfullpath}" | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/enable-query//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//') - rconport=$(grep "rcon.port" "${servercfgfullpath}" | grep -v "#" | tr -cd '[:digit:]') gamemode=$(grep "gamemode" "${servercfgfullpath}" | grep -v "#" | tr -cd '[:digit:]') gameworld=$(grep "level-name" "${servercfgfullpath}" | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/level-name//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//') @@ -354,9 +353,10 @@ fn_info_config_minecraft(){ rconport=${rconport:-"NOT SET"} maxplayers=${maxplayers:-"NOT SET"} port=${port:-"NOT SET"} + queryport="${queryport:-"NOT SET"}" + queryenabled="${queryenabled:-"NOT SET"}" gamemode=${gamemode:-"NOT SET"} gameworld=${gameworld:-"NOT SET"} - fi } From aa36c998b51d9977ab3d4ece612395d0782d570b Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Tue, 9 Apr 2019 19:27:46 +0100 Subject: [PATCH 3/3] fix(mcserver): eula now correctly alteres to true --- lgsm/functions/install_eula.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lgsm/functions/install_eula.sh b/lgsm/functions/install_eula.sh index c2554792ff..cc676f0dcf 100644 --- a/lgsm/functions/install_eula.sh +++ b/lgsm/functions/install_eula.sh @@ -39,7 +39,7 @@ if [ "${shortname}" == "ts3" ]; then touch "${executabledir}/.ts3server_license_accepted" elif [ "${shortname}" == "mc" ]; then touch "${serverfiles}/eula.txt" - sed -i "s/eula=false/eula=true/g" "${serverfiles}/eula.txt" + echo "eula=true" > "${serverfiles}/eula.txt" elif [ "${shortname}" == "ut" ]; then : fi