using Content.Shared.Administration; using Robust.Server.Player; namespace Content.Server.Administration { /// /// Sealed when the permissions of an admin on the server change. /// public sealed class AdminPermsChangedEventArgs : EventArgs { public AdminPermsChangedEventArgs(IPlayerSession player, AdminFlags? flags) { Player = player; Flags = flags; } /// /// The player that had their admin permissions changed. /// public IPlayerSession 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; } }