mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-03-05 07:00:03 +00:00
Fixed gag
This commit is contained in:
@@ -151,10 +151,10 @@ public partial class CS2_SimpleAdmin
|
|||||||
return HookResult.Continue;
|
return HookResult.Continue;
|
||||||
|
|
||||||
if (info.GetArg(1).Length == 0)
|
if (info.GetArg(1).Length == 0)
|
||||||
return HookResult.Handled;
|
return HookResult.Stop;
|
||||||
|
|
||||||
if (PlayerPenaltyManager.IsPenalized(player.Slot, PenaltyType.Gag) || PlayerPenaltyManager.IsPenalized(player.Slot, PenaltyType.Silence))
|
if (PlayerPenaltyManager.IsPenalized(player.Slot, PenaltyType.Gag) || PlayerPenaltyManager.IsPenalized(player.Slot, PenaltyType.Silence))
|
||||||
return HookResult.Handled;
|
return HookResult.Stop;
|
||||||
|
|
||||||
if (command != "say_team" || !info.GetArg(1).StartsWith($"@")) return HookResult.Continue;
|
if (command != "say_team" || !info.GetArg(1).StartsWith($"@")) return HookResult.Continue;
|
||||||
|
|
||||||
@@ -178,7 +178,7 @@ public partial class CS2_SimpleAdmin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return HookResult.Handled;
|
return HookResult.Stop;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*public HookResult OnCommandSay(CCSPlayerController? player, CommandInfo info)
|
/*public HookResult OnCommandSay(CCSPlayerController? player, CommandInfo info)
|
||||||
|
|||||||
@@ -607,7 +607,6 @@ public static class Time
|
|||||||
{
|
{
|
||||||
TimeZoneInfo timezone = TimeZoneInfo.FindSystemTimeZoneById(timezoneId);
|
TimeZoneInfo timezone = TimeZoneInfo.FindSystemTimeZoneById(timezoneId);
|
||||||
DateTime userTime = TimeZoneInfo.ConvertTimeFromUtc(utcNow, timezone);
|
DateTime userTime = TimeZoneInfo.ConvertTimeFromUtc(utcNow, timezone);
|
||||||
|
|
||||||
return userTime;
|
return userTime;
|
||||||
}
|
}
|
||||||
catch (TimeZoneNotFoundException)
|
catch (TimeZoneNotFoundException)
|
||||||
|
|||||||
Reference in New Issue
Block a user