|
@ -8,7 +8,7 @@ |
|
|
|
|
|
|
|
|
#### Game Server Settings #### |
|
|
#### Game Server Settings #### |
|
|
|
|
|
|
|
|
## Server Parameters Settings | https://docs.linuxgsm.com/configuration/start-parameters |
|
|
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
|
|
ip="0.0.0.0" |
|
|
ip="0.0.0.0" |
|
|
port="27102" |
|
|
port="27102" |
|
|
queryport="27131" |
|
|
queryport="27131" |
|
@ -22,9 +22,9 @@ maxplayers="28" |
|
|
fn_parms(){ |
|
|
fn_parms(){ |
|
|
# Allows serverpassword to work with parameters |
|
|
# Allows serverpassword to work with parameters |
|
|
if [ "${serverpassword}" != "NOT SET" ]; then |
|
|
if [ "${serverpassword}" != "NOT SET" ]; then |
|
|
parms="${defaultmap}?Scenario=${defaultscenario}?MaxPlayers=${maxplayers}?Port=${port}?QueryPort=${queryport}?password="${serverpassword}" -hostname="${servername}" -log" |
|
|
parms="${defaultmap}?Scenario=${defaultscenario}?MaxPlayers=${maxplayers}?Port=${port}?QueryPort=${queryport}?password="${serverpassword}" -hostname="${servername}" -log" |
|
|
else |
|
|
else |
|
|
parms="${defaultmap}?Scenario=${defaultscenario}?MaxPlayers=${maxplayers}?Port=${port}?QueryPort=${queryport} -hostname="${servername}" -log" |
|
|
parms="${defaultmap}?Scenario=${defaultscenario}?MaxPlayers=${maxplayers}?Port=${port}?QueryPort=${queryport} -hostname="${servername}" -log" |
|
|
fi |
|
|
fi |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|