From c1d1a164ed95cacfebc7fe01e495cfa63e7a4cd1 Mon Sep 17 00:00:00 2001 From: drjaska Date: Sat, 13 Mar 2021 09:28:45 +0200 Subject: [PATCH] Modified default hostname to have an unique part in it from _cl_name This should work as server.cfg is one of the last files which gets executed so _cl_name shouldn't be empty unless someone regularly wipes their config.cfg and doesn't pay attention to their server.cfg when setting their server up. --- server/server.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/server.cfg b/server/server.cfg index 82fe9a4d..32555723 100644 --- a/server/server.cfg +++ b/server/server.cfg @@ -17,7 +17,7 @@ // Things you SHOULD change to make the server "yours" (remove the // and change the value): //sv_public 1 // 0 or -1 (see description) if the server should not be on the public servers list -//hostname "Xonotic $g_xonoticversion Server" // this name will appear on the server list (the $g_xonoticversion gets replaced with the current version) +//hostname "$_cl_name's Xonotic $g_xonoticversion Server" // this name will appear on the server list (the $g_xonoticversion gets replaced with the current version) //sv_motd "" // displayed on connect - good place for contact info (IRC, forum nick, etc.) so players can reach you when something is wrong with your server // This sets the remote console password on the server, you also need to set the cvar to the same value on your client to use the 'rcon' command. -- 2.39.2