Persist deadmin to database, add admin suspension system (#34048)
This commit is contained in:
committed by
GitHub
parent
47042cc8dd
commit
c2e050ced0
@@ -18,6 +18,7 @@ namespace Content.Shared.Administration
|
||||
public NetUserId UserId;
|
||||
public string? UserName;
|
||||
public string? Title;
|
||||
public bool Suspended;
|
||||
public AdminFlags PosFlags;
|
||||
public AdminFlags NegFlags;
|
||||
public int? RankId;
|
||||
@@ -41,6 +42,7 @@ namespace Content.Shared.Administration
|
||||
public AdminFlags PosFlags;
|
||||
public AdminFlags NegFlags;
|
||||
public int? RankId;
|
||||
public bool Suspended;
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
@@ -57,6 +59,7 @@ namespace Content.Shared.Administration
|
||||
public AdminFlags PosFlags;
|
||||
public AdminFlags NegFlags;
|
||||
public int? RankId;
|
||||
public bool Suspended;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -32,12 +32,6 @@ public sealed class ContentPlayerData
|
||||
[ViewVariables, Access(typeof(SharedMindSystem), typeof(SharedGameTicker))]
|
||||
public EntityUid? Mind { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// If true, the player is an admin and they explicitly de-adminned mid-game,
|
||||
/// so they should not regain admin if they reconnect.
|
||||
/// </summary>
|
||||
public bool ExplicitlyDeadminned { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// If true, the admin will not show up in adminwho except to admins with the <see cref="AdminFlags.Stealth"/> flag.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user