Add cvar to disable ooc chat (#3258)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user