diff --git a/CS2-SimpleAdmin/Events.cs b/CS2-SimpleAdmin/Events.cs index 04b8736..3747c07 100644 --- a/CS2-SimpleAdmin/Events.cs +++ b/CS2-SimpleAdmin/Events.cs @@ -151,10 +151,10 @@ private HookResult OnCommandSayNew(CCSPlayerController? player, CommandInfo info return HookResult.Continue; 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)) - return HookResult.Handled; + return HookResult.Stop; if (command != "say_team" || !info.GetArg(1).StartsWith($"@")) return HookResult.Continue; @@ -178,7 +178,7 @@ private HookResult OnCommandSayNew(CCSPlayerController? player, CommandInfo info } } - return HookResult.Handled; + return HookResult.Stop; } /*public HookResult OnCommandSay(CCSPlayerController? player, CommandInfo info) diff --git a/CS2-SimpleAdmin/Helper.cs b/CS2-SimpleAdmin/Helper.cs index 7f16053..cd23122 100644 --- a/CS2-SimpleAdmin/Helper.cs +++ b/CS2-SimpleAdmin/Helper.cs @@ -607,7 +607,6 @@ public static DateTime ActualDateTime() { TimeZoneInfo timezone = TimeZoneInfo.FindSystemTimeZoneById(timezoneId); DateTime userTime = TimeZoneInfo.ConvertTimeFromUtc(utcNow, timezone); - return userTime; } catch (TimeZoneNotFoundException)