Fixed? rename
This commit is contained in:
parent
774d812723
commit
4206ad18b2
1 changed files with 4 additions and 4 deletions
|
|
@ -597,9 +597,6 @@ public partial class CS2_SimpleAdmin
|
|||
if (player.Connected != PlayerConnectedState.PlayerConnected || !caller!.CanTarget(player))
|
||||
return;
|
||||
|
||||
// Rename the player
|
||||
player.Rename(newName);
|
||||
|
||||
// Determine message key and arguments for the rename notification
|
||||
var activityMessageKey = "sa_admin_rename_message";
|
||||
var adminActivityArgs = new object[] { "CALLER", player.PlayerName, newName };
|
||||
|
|
@ -608,6 +605,9 @@ public partial class CS2_SimpleAdmin
|
|||
if (caller != null && SilentPlayers.Contains(caller.Slot)) return;
|
||||
|
||||
Helper.ShowAdminActivity(activityMessageKey, callerName, adminActivityArgs);
|
||||
|
||||
// Rename the player
|
||||
player.Rename(newName);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue