Skip to content

Commit

Permalink
Update playercommands.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
daffyyyy committed Sep 29, 2024
1 parent cf5c1d8 commit 774d812
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions CS2-SimpleAdmin/Commands/playercommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 774d812

Please sign in to comment.