add the possibility to disabled AFK kick

This commit is contained in:
Beu 2023-07-12 13:08:43 +02:00
parent d89ee0739e
commit 38c4e45c5c

View File

@ -959,10 +959,10 @@ Void SetML() {
} }
// Check if player is AFK or not // Check if player is AFK or not
if (Input.TimeSinceLatestActivity > Last_AFKIdleTime) { if (Last_AFKIdleTime > 0 && Input.TimeSinceLatestActivity > Last_AFKIdleTime) {
log("Player is AFK"); log("Player is AFK");
Playground.QuitServer(False); Playground.QuitServer(False);
} else if (Input.TimeSinceLatestActivity > Last_AFKDisplayTime) { } else if (Last_AFKIdleTime > 0 && Input.TimeSinceLatestActivity > Last_AFKDisplayTime) {
Frame_Global.Visible = True; Frame_Global.Visible = True;
} else { } else {
Frame_Global.Visible = False; Frame_Global.Visible = False;