work around for iw5/t6 not being able to parse multiple commands over rcon for mag command

This commit is contained in:
RaidMax 2021-11-28 21:05:08 -06:00
parent 5d7ac7498f
commit 5d12ff471b

View File

@ -112,10 +112,12 @@ namespace IW4MAdmin.Application.Commands
{ {
case Server.Game.IW5: case Server.Game.IW5:
await gameEvent.Owner.ExecuteCommandAsync( await gameEvent.Owner.ExecuteCommandAsync(
$"load_dsr {(hasMatchingGametype ? gametype.ToUpper() + "_default" : gametype)};map {map}"); $"load_dsr {(hasMatchingGametype ? gametype.ToUpper() + "_default" : gametype)}");
await gameEvent.Owner.ExecuteCommandAsync($"map {map}");
break; break;
case Server.Game.T6: case Server.Game.T6:
await gameEvent.Owner.ExecuteCommandAsync($"exec {gametype}.cfg;map {map}"); await gameEvent.Owner.ExecuteCommandAsync($"exec {gametype}.cfg");
await gameEvent.Owner.ExecuteCommandAsync($"map {map}");
break; break;
default: default:
await gameEvent.Owner.ExecuteCommandAsync($"map {map}"); await gameEvent.Owner.ExecuteCommandAsync($"map {map}");