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 SourceAdminPermsChangedEventArgs(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 SourceFlags
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> |
IsAdmin
Whether the player is now an admin.
Declaration
public bool IsAdmin { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Player
The player that had their admin permissions changed.
Declaration
public IPlayerSession Player { get; }
Property Value
Type | Description |
---|---|
Robust.Server.Player.IPlayerSession |