Add cvar to disable ooc chat (#3258)

This commit is contained in:
DrSmugleaf
2021-02-16 20:14:32 +01:00
committed by GitHub
parent 3c54c755ce
commit ecb9993d80
7 changed files with 131 additions and 19 deletions

View File

@@ -21,6 +21,11 @@ namespace Content.Client.Administration
public event Action? AdminStatusUpdated;
public bool IsActive()
{
return _adminData?.Active ?? false;
}
public bool HasFlag(AdminFlags flag)
{
return _adminData?.HasFlag(flag) ?? false;

View File

@@ -15,6 +15,12 @@ namespace Content.Client.Administration
/// </summary>
event Action AdminStatusUpdated;
/// <summary>
/// Checks whether the local player is an admin.
/// </summary>
/// <returns>true if the local player is an admin, false otherwise even if they are deadminned.</returns>
bool IsActive();
/// <summary>
/// Checks whether the local player has an admin flag.
/// </summary>