Skip to content

Commit 6c6034a

Browse files
authored
Fix changing map exception
Signed-off-by: Hackmastr <[email protected]>
1 parent d0d2adc commit 6c6034a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

BasicAdmin/BasicAdmin.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public void OnMapCommand(CCSPlayerController? caller, CommandInfo info)
174174
// caller.Discon
175175
});
176176

177-
Logger.LogInformation($"{caller!.PlayerName} changed map to {map}.");
177+
Logger.LogInformation($"{caller?.PlayerName ?? Localizer["ba.console"]} changed map to {map}.");
178178
}
179179

180180
[ConsoleCommand("css_wsmap", "Change map.")]
@@ -200,7 +200,7 @@ public void OnWorkshopMapCommand(CCSPlayerController? caller, CommandInfo info)
200200
Server.ExecuteCommand(command);
201201
});
202202

203-
Logger.LogInformation($"{caller!.PlayerName} changed map to {map}.");
203+
Logger.LogInformation($"{caller?.PlayerName ?? Localizer["ba.console"]} changed map to {map}.");
204204
}
205205

206206
[ConsoleCommand("css_kick", "Kick a player from the server.")]

0 commit comments

Comments
 (0)