mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-02-18 10:43:23 +00:00
1.3.6c
- Fixed kick reason - Small changes - Fixed map name in css_map command
This commit is contained in:
@@ -413,7 +413,7 @@ namespace CS2_SimpleAdmin
|
||||
player.Pawn.Value!.Freeze();
|
||||
}
|
||||
|
||||
reason = CS2_SimpleAdmin._localizer?["sa_unknown"] ?? "Unknown";
|
||||
reason = reason ?? CS2_SimpleAdmin._localizer?["sa_unknown"] ?? "Unknown";
|
||||
|
||||
Helper.LogCommand(caller, $"css_kick {player.PlayerName} {reason}");
|
||||
|
||||
@@ -462,6 +462,8 @@ namespace CS2_SimpleAdmin
|
||||
string callerName = caller == null ? "Console" : caller.PlayerName;
|
||||
string _command = string.Empty;
|
||||
|
||||
map = map.ToLower();
|
||||
|
||||
if (map.StartsWith("ws:"))
|
||||
{
|
||||
if (long.TryParse(map.Replace("ws:", ""), out long mapId))
|
||||
@@ -540,6 +542,8 @@ namespace CS2_SimpleAdmin
|
||||
string callerName = caller == null ? "Console" : caller.PlayerName;
|
||||
string _command = string.Empty;
|
||||
|
||||
map = map.ToLower();
|
||||
|
||||
if (long.TryParse(map, out long mapId))
|
||||
{
|
||||
_command = $"host_workshop_map {mapId}";
|
||||
|
||||
Reference in New Issue
Block a user