using Content.Shared.Administration;
using Robust.Shared.Player;
namespace Content.Server.Administration
{
///
/// Sealed when the permissions of an admin on the server change.
///
public sealed class AdminPermsChangedEventArgs : EventArgs
{
public AdminPermsChangedEventArgs(ICommonSession player, AdminFlags? flags)
{
Player = player;
Flags = flags;
}
///
/// The player that had their admin permissions changed.
///
public ICommonSession Player { get; }
///
/// The admin flags of the player. Null if the player is no longer an admin.
///
public AdminFlags? Flags { get; }
///
/// Whether the player is now an admin.
///
public bool IsAdmin => Flags.HasValue;
}
}