Show / Hide Table of Contents

Class AdminPermsChangedEventArgs

Sealed when the permissions of an admin on the server change.

Inheritance
System.Object
AdminPermsChangedEventArgs
Namespace: Content.Server.Administration
Assembly: Content.Server.dll
Syntax
public sealed class AdminPermsChangedEventArgs : EventArgs

Constructors

| Improve this Doc View Source

AdminPermsChangedEventArgs(IPlayerSession, Nullable<AdminFlags>)

Declaration
public AdminPermsChangedEventArgs(IPlayerSession player, AdminFlags? flags)
Parameters
Type Name Description
Robust.Server.Player.IPlayerSession player
System.Nullable<AdminFlags> flags

Properties

| Improve this Doc View Source

Flags

The admin flags of the player. Null if the player is no longer an admin.

Declaration
public AdminFlags? Flags { get; }
Property Value
Type Description
System.Nullable<AdminFlags>
| Improve this Doc View Source

IsAdmin

Whether the player is now an admin.

Declaration
public bool IsAdmin { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Player

The player that had their admin permissions changed.

Declaration
public IPlayerSession Player { get; }
Property Value
Type Description
Robust.Server.Player.IPlayerSession
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾