Revert "Add stealthmins (#26263)"

This reverts commit dca0c6694b.

# Conflicts:
#	Content.Server/Administration/Commands/AdminWhoCommand.cs
#	Content.Server/Administration/Managers/AdminManager.cs
#	Content.Server/Chat/Managers/IChatManager.cs
This commit is contained in:
Remuchi
2024-03-30 10:41:05 +07:00
parent 0b2238b57a
commit 5aff149c43
9 changed files with 8 additions and 170 deletions

View File

@@ -14,11 +14,6 @@ namespace Content.Shared.Administration
public bool Stealth; // WD
/// <summary>
/// Whether the admin is in stealth mode and won't appear in adminwho to admins without the Stealth flag.
/// </summary>
public bool Stealth;
/// <summary>
/// The admin's title.
/// </summary>
@@ -63,14 +58,6 @@ namespace Content.Shared.Administration
return HasFlag(AdminFlags.Admin);
}
/// <summary>
/// Check if this admin can be hidden and see other hidden admins.
/// </summary>
public bool CanStealth()
{
return HasFlag(AdminFlags.Stealth);
}
public bool CanAdminReloadPrototypes()
{
return HasFlag(AdminFlags.Host);

View File

@@ -104,11 +104,6 @@ namespace Content.Shared.Administration
/// </summary>
MassBan = 1 << 17,
/// <summary>
/// Allows you to remain hidden from adminwho except to other admins with this flag.
/// </summary>
Stealth = 1 << 16,
/// <summary>
/// Dangerous host permissions like scsi.
/// </summary>

View File

@@ -1,5 +1,4 @@
using Content.Shared.Administration;
using Content.Shared.GameTicking;
using Content.Shared.GameTicking;
using Content.Shared.Mind;
using Robust.Shared.Network;
@@ -38,14 +37,9 @@ public sealed class ContentPlayerData
/// </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>
public bool Stealthed { get; set; }
public ContentPlayerData(NetUserId userId, string name)
{
UserId = userId;
Name = name;
}
}
}