From 774d812723d8fd12d444b0d033e68e06b98ad6fe Mon Sep 17 00:00:00 2001 From: Dawid Bepierszcz <41084667+daffyyyy@users.noreply.github.com> Date: Sun, 29 Sep 2024 18:43:03 +0200 Subject: [PATCH] Update playercommands.cs --- CS2-SimpleAdmin/Commands/playercommands.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CS2-SimpleAdmin/Commands/playercommands.cs b/CS2-SimpleAdmin/Commands/playercommands.cs index 0ec46f3..d2280ac 100644 --- a/CS2-SimpleAdmin/Commands/playercommands.cs +++ b/CS2-SimpleAdmin/Commands/playercommands.cs @@ -643,9 +643,10 @@ public void OnPrenameCommand(CCSPlayerController? caller, CommandInfo command) var adminActivityArgs = new object[] { "CALLER", player.PlayerName, newName }; // Display admin activity message to other players - if (caller != null && SilentPlayers.Contains(caller.Slot)) return; - - Helper.ShowAdminActivity(activityMessageKey, callerName, adminActivityArgs); + if (caller != null && !SilentPlayers.Contains(caller.Slot)) + { + Helper.ShowAdminActivity(activityMessageKey, callerName, adminActivityArgs); + } // Determine if the new name is valid and update the renamed players list if (!string.IsNullOrEmpty(newName))