Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
VALERA771 committed Jul 13, 2024
1 parent e59f9d8 commit ef3cc43
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Exiled.API/Features/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -668,9 +668,19 @@ public PlayerPermissions RemoteAdminPermissions
public Role Role
{
get => role ??= Role.Create(RoleManager.CurrentRole);
internal set => role = value;
internal set
{
PreviousRole = role;
role = value;
}
}

/// <summary>
/// Gets the previous player's role.
/// </summary>
[EProperty(readOnly: true, category: ROLES_CATEGORY)]
public Role PreviousRole { get; private set; }

/// <summary>
/// Gets or sets the player's SCP preferences.
/// </summary>
Expand Down

0 comments on commit ef3cc43

Please sign in to comment.