From 71228e0dd399146ba65ddfd3e40d6aae5cff843f Mon Sep 17 00:00:00 2001 From: Jens van de Wiel Date: Mon, 6 Nov 2023 19:31:16 +0100 Subject: [PATCH] bugfix --- server/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/server.go b/server/server.go index 76f7f3d..acb67a8 100644 --- a/server/server.go +++ b/server/server.go @@ -170,9 +170,8 @@ func (s *Server) IsServerRunning() bool { func (s *Server) CreateArguments() []string { var args []string = []string{} - args = append(args, s.ServerMap+"?listen") + args = append(args, s.ServerMap+"?listen"+"?SessionName="+s.ServerName) args = append(args, "?MultiHome="+s.IpAddress) - args = append(args, "?SessionName="+s.ServerName) args = append(args, "?Port="+strconv.Itoa(s.ServerPort)) args = append(args, "?QueryPort="+strconv.Itoa(s.QueryPort)) args = append(args, "?RCONEnabled=true?RCONServerGameLogBuffer=600?RCONPort="+strconv.Itoa(s.RCONPort)) @@ -192,6 +191,7 @@ func (s *Server) CreateArguments() []string { if s.Mods != "" { args = append(args, "-mods="+s.Mods) } + args = append(args, "-WinLiveMaxPlayers="+strconv.Itoa(s.MaxPlayers)) extraArgs := strings.Split(s.ExtraDashArgs, " ")