add the possibility to disabled AFK kick
This commit is contained in:
1 parent
d89ee0739e
commit
38c4e45c5c
1 file changed
+2
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user