Better notes and bans (#14228)
Co-authored-by: Chief-Engineer <119664036+Chief-Engineer@users.noreply.github.com>
This commit is contained in:
@@ -647,7 +647,7 @@ namespace Content.Shared.CCVar
|
||||
CVarDef.Create("net.gasoverlaythresholds", 20);
|
||||
|
||||
/*
|
||||
* Admin stuff
|
||||
* Admin
|
||||
*/
|
||||
|
||||
public static readonly CVarDef<bool> AdminAnnounceLogin =
|
||||
@@ -656,6 +656,49 @@ namespace Content.Shared.CCVar
|
||||
public static readonly CVarDef<bool> AdminAnnounceLogout =
|
||||
CVarDef.Create("admin.announce_logout", true, CVar.SERVERONLY);
|
||||
|
||||
/// <summary>
|
||||
/// Should users be able to see their own notes? Admins will be able to see and set notes regardless
|
||||
/// </summary>
|
||||
public static readonly CVarDef<bool> SeeOwnNotes =
|
||||
CVarDef.Create("admin.see_own_notes", false, CVar.ARCHIVE | CVar.REPLICATED | CVar.SERVER);
|
||||
|
||||
/// <summary>
|
||||
/// The amount of days before the note starts fading. It will slowly lose opacity until it reaches stale. Set to 0 to disable.
|
||||
/// </summary>
|
||||
public static readonly CVarDef<double> NoteFreshDays =
|
||||
CVarDef.Create("admin.note_fresh_days", 91.31055, CVar.ARCHIVE | CVar.REPLICATED | CVar.SERVER);
|
||||
|
||||
/// <summary>
|
||||
/// The amount of days before the note completely fades, and can only be seen by admins if they press "see more notes". Set to 0
|
||||
/// if you want the note to immediately disappear without fading.
|
||||
/// </summary>
|
||||
public static readonly CVarDef<double> NoteStaleDays =
|
||||
CVarDef.Create("admin.note_stale_days", 365.2422, CVar.ARCHIVE | CVar.REPLICATED | CVar.SERVER);
|
||||
|
||||
/// <summary>
|
||||
/// How much time does the user have to wait in seconds before confirming that they saw an admin message?
|
||||
/// </summary>
|
||||
public static readonly CVarDef<float> MessageWaitTime =
|
||||
CVarDef.Create("admin.message_wait_time", 3f, CVar.ARCHIVE | CVar.REPLICATED | CVar.SERVER);
|
||||
|
||||
/// <summary>
|
||||
/// Default severity for role bans
|
||||
/// </summary>
|
||||
public static readonly CVarDef<string> RoleBanDefaultSeverity =
|
||||
CVarDef.Create("admin.role_ban_default_severity", "medium", CVar.ARCHIVE | CVar.SERVER);
|
||||
|
||||
/// <summary>
|
||||
/// Default severity for department bans
|
||||
/// </summary>
|
||||
public static readonly CVarDef<string> DepartmentBanDefaultSeverity =
|
||||
CVarDef.Create("admin.department_ban_default_severity", "medium", CVar.ARCHIVE | CVar.SERVER);
|
||||
|
||||
/// <summary>
|
||||
/// Default severity for server bans
|
||||
/// </summary>
|
||||
public static readonly CVarDef<string> ServerBanDefaultSeverity =
|
||||
CVarDef.Create("admin.server_ban_default_severity", "high", CVar.ARCHIVE | CVar.SERVER);
|
||||
|
||||
/// <summary>
|
||||
/// Minimum explosion intensity to create an admin alert message. -1 to disable the alert.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user