diff --git a/src/Warden/Logs.cs b/src/Warden/Logs.cs index cada2dc..2acf13a 100644 --- a/src/Warden/Logs.cs +++ b/src/Warden/Logs.cs @@ -27,8 +27,10 @@ private HookResult OnRoundEnd(EventRoundEnd @event, GameEventInfo info) { foreach (CCSPlayerController player in Utilities.GetPlayers()) { - if (!player.IsValid || player.IsBot || player.IsHLTV) continue; - printLogs(player); + if (player.is_valid() && !player.IsBot) + { + printLogs(player); + } } logs.Clear(); return HookResult.Continue; diff --git a/src/Warden/Warden.cs b/src/Warden/Warden.cs index 5cc00b3..16b32f0 100644 --- a/src/Warden/Warden.cs +++ b/src/Warden/Warden.cs @@ -93,11 +93,6 @@ public void remove_warden() public void remove_if_warden(CCSPlayerController? player) { - if(!player.is_valid()) - { - return; - } - if(is_warden(player)) { remove_warden();