Browse Source

rising world ports

pull/3428/head
Daniel Gibbs 4 years ago
parent
commit
c83d414773
  1. 3
      lgsm/functions/info_config.sh
  2. 6
      lgsm/functions/info_messages.sh

3
lgsm/functions/info_config.sh

@ -768,6 +768,9 @@ fn_info_config_risingworld(){
rconport=$(grep "rcon_port" "${servercfgfullpath}" | grep -v "#" | tr -cd '[:digit:]')
maxplayers=$(grep "settings_max_players" "${servercfgfullpath}" | grep -v "#" | tr -cd '[:digit:]')
port=$(grep "server_port" "${servercfgfullpath}" | grep -v "database_mysql_server_port" | grep -v "#" | tr -cd '[:digit:]')
port2=$((port+1))
port3=$((port+2))
port4=$((port+3))
queryport="${port}"
gamemode=$(grep "gamemode" "${servercfgfullpath}" | grep -v "#" | tr -cd '[:digit:]')
gameworld=$(grep "server_world_name" "${servercfgfullpath}" | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/server_world_name//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//')

6
lgsm/functions/info_messages.sh

@ -1082,6 +1082,12 @@ fn_info_message_risingworld(){
{
fn_port "header"
fn_port "Game" port udp
fn_port "Game+1" port2 udp
fn_port "Game+2" port3 udp
fn_port "Game+3" port4 udp
fn_port "Game+1" port2 tcp
fn_port "Game+2" port3 tcp
fn_port "Game+3" port4 tcp
fn_port "Query" queryport tcp
fn_port "Query HTTP" httpqueryport tcp
fn_port "RCON" rconport tcp

Loading…
Cancel
Save