Add AFK tracking system.

Allows us to see which players have not done any input and can be considered AFK.
This commit is contained in:
Pieter-Jan Briers
2021-07-22 23:19:41 +02:00
parent ed384fbc91
commit 7345985410
5 changed files with 153 additions and 0 deletions

View File

@@ -382,5 +382,15 @@ namespace Content.Shared.CCVar
public static readonly CVarDef<int> ChatMaxMessageLength =
CVarDef.Create("chat.max_message_length", 1000, CVar.SERVER | CVar.REPLICATED);
/*
* AFK
*/
/// <summary>
/// How long a client can go without any input before being considered AFK.
/// </summary>
public static readonly CVarDef<float> AfkTime =
CVarDef.Create("afk.time", 60f, CVar.SERVERONLY);
}
}