add the possibility to disabled AFK kick
This commit is contained in:
parent
d89ee0739e
commit
38c4e45c5c
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user