Daniel Gibbs
12 months ago
No known key found for this signature in database
GPG Key ID: 2076B128385E8C55
2 changed files with
6 additions and
6 deletions
-
lgsm/modules/info_game.sh
-
lgsm/modules/install_config.sh
|
|
@ -2242,15 +2242,15 @@ fn_info_game_wf() { |
|
|
|
servername="${servername:-"NOT SET"}" |
|
|
|
} |
|
|
|
|
|
|
|
# Config Type: Xonotic |
|
|
|
# Config Type: QuakeC |
|
|
|
# Comment: // |
|
|
|
# Filetype: cfg |
|
|
|
fn_info_game_xnt() { |
|
|
|
if [ -f "${servercfgfullpath}" ]; then |
|
|
|
fn_info_game_quakec "rconpassword" "rcon_password" |
|
|
|
fn_info_game_quakec "port" "port" |
|
|
|
fn_info_game_quakec "servername" "hostname" |
|
|
|
fn_info_game_quakec "maxplayers" "maxplayers" |
|
|
|
fn_info_game_keyvalue_pairs_space "rconpassword" "rcon_password" |
|
|
|
fn_info_game_keyvalue_pairs_space "port" "port" |
|
|
|
fn_info_game_keyvalue_pairs_space "servername" "hostname" |
|
|
|
fn_info_game_keyvalue_pairs_space "maxplayers" "maxplayers" |
|
|
|
fi |
|
|
|
rconpassword="${rconpassword:-"NOT SET"}" |
|
|
|
maxplayers="${maxplayers:-"8"}" |
|
|
|
|
|
@ -68,7 +68,7 @@ fn_default_config_local() { |
|
|
|
mkdir -p "$(dirname "${servercfgfullpath}")" |
|
|
|
fi |
|
|
|
|
|
|
|
echo -en "copying config file [ ${italic}${servercfgdefault}${default} ]" |
|
|
|
echo -en "copying config file [ ${italic}${servercfgdefault}${default} ]: " |
|
|
|
cp --update=none "${servercfgdir}/${servercfgdefault}" "${servercfgfullpath}" |
|
|
|
exitcode=$? |
|
|
|
if [ "${exitcode}" != 0 ]; then |
|
|
|