mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-02-18 10:43:23 +00:00
Update playercommands.cs
This commit is contained in:
@@ -643,9 +643,10 @@ public partial class CS2_SimpleAdmin
|
|||||||
var adminActivityArgs = new object[] { "CALLER", player.PlayerName, newName };
|
var adminActivityArgs = new object[] { "CALLER", player.PlayerName, newName };
|
||||||
|
|
||||||
// Display admin activity message to other players
|
// Display admin activity message to other players
|
||||||
if (caller != null && SilentPlayers.Contains(caller.Slot)) return;
|
if (caller != null && !SilentPlayers.Contains(caller.Slot))
|
||||||
|
{
|
||||||
Helper.ShowAdminActivity(activityMessageKey, callerName, adminActivityArgs);
|
Helper.ShowAdminActivity(activityMessageKey, callerName, adminActivityArgs);
|
||||||
|
}
|
||||||
|
|
||||||
// Determine if the new name is valid and update the renamed players list
|
// Determine if the new name is valid and update the renamed players list
|
||||||
if (!string.IsNullOrEmpty(newName))
|
if (!string.IsNullOrEmpty(newName))
|
||||||
|
|||||||
Reference in New Issue
Block a user