Explorar o código

ns2server: added info on passwording server

Made changes to make it easier to password the server by adding details
on how to correctly password the server
Daniel Gibbs %!s(int64=11) %!d(string=hai) anos
pai
achega
7007e0884f
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      NaturalSelection2/ns2server

+ 4 - 2
NaturalSelection2/ns2server

@@ -30,10 +30,12 @@ configpath="server1"
 modstorage="server1/Workshop"
 mods=""
 password=""
+# Add the following line to the parms if you want a private server. Ensuring
+# that the password variable above is not left empty.
+# -password \"${password}\"
+
 fn_parms(){
-#parms="-name \"${servername}\" -port ${port} -password \"${password}\" -webadmin -webdomain ${ip} -webuser ${webadminuser} -webpassword \"${webadminpass}\" -webport ${webadminport} -map ${defaultmap} -limit ${maxplayers} -config_path \"${rootdir}/${configpath}\" -modstorage \"${rootdir}/${modstorage}\" -mods \"${mods}\""
 parms="-name \"${servername}\" -port ${port} -webadmin -webdomain ${ip} -webuser ${webadminuser} -webpassword \"${webadminpass}\" -webport ${webadminport} -map ${defaultmap} -limit ${maxplayers} -config_path \"${rootdir}/${configpath}\" -modstorage \"${rootdir}/${modstorage}\" -mods \"${mods}\""
-
 }
 #### Advanced Variables ####