Closed mwerkmeister closed 8 months ago
Weirdly it doesn't fix maxplayers for me here:
https://i.imgur.com/y3JpH4R.jpeg
The reliable way to fix the maxplayers ( so far ) is in 1.1 version of the plugin ( adding -winlivemaxplayers at the end ).
Added this to 1.2, however i can't get MaxPlayers to work reliably for me ( read - i can't get it working at all ), thus i added :
if (!string.IsNullOrWhiteSpace(_serverData.ServerMaxPlayer))
param.Append($" -WinLiveMaxPlayers={_serverData.ServerMaxPlayer}");
It's on the end of the startup params, it works reliably 100% of the time. Thanks for the pull, i updated mine before looking at the pull request, but still it's your fix.
--> fix parameters
The Server was ignoring all commands (even maxPlayers and SessionName) because of the blank after "_serverData.ServerMap" I have added the blank before _serverData.ServerParam to have the blank where it belongs.