From 38c4e45c5cfda18ef3a8b17a69e4536748ef724c Mon Sep 17 00:00:00 2001 From: Beu Date: Wed, 12 Jul 2023 13:08:43 +0200 Subject: [PATCH] add the possibility to disabled AFK kick --- LastManStanding.Script.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LastManStanding.Script.txt b/LastManStanding.Script.txt index bfa4a1b..e98a39f 100644 --- a/LastManStanding.Script.txt +++ b/LastManStanding.Script.txt @@ -959,10 +959,10 @@ Void SetML() { } // Check if player is AFK or not - if (Input.TimeSinceLatestActivity > Last_AFKIdleTime) { + if (Last_AFKIdleTime > 0 && Input.TimeSinceLatestActivity > Last_AFKIdleTime) { log("Player is AFK"); Playground.QuitServer(False); - } else if (Input.TimeSinceLatestActivity > Last_AFKDisplayTime) { + } else if (Last_AFKIdleTime > 0 && Input.TimeSinceLatestActivity > Last_AFKDisplayTime) { Frame_Global.Visible = True; } else { Frame_Global.Visible = False;