From 397bcf709f0f952c5439d42600c5afe50c474a3e Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 17 Sep 2018 01:22:14 +0100 Subject: [PATCH] Make the AFK kicker more lenient --- .../src/mineplex/game/nano/lobby/AFKManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugins/Mineplex.Game.Nano/src/mineplex/game/nano/lobby/AFKManager.java b/Plugins/Mineplex.Game.Nano/src/mineplex/game/nano/lobby/AFKManager.java index 38da446f4..eb6e67291 100644 --- a/Plugins/Mineplex.Game.Nano/src/mineplex/game/nano/lobby/AFKManager.java +++ b/Plugins/Mineplex.Game.Nano/src/mineplex/game/nano/lobby/AFKManager.java @@ -70,7 +70,7 @@ public class AFKManager extends MiniClientPlugin @EventHandler public void updateAFK(UpdateEvent event) { - if (event.getType() != UpdateType.SEC || _manager.getGame() == null) + if (event.getType() != UpdateType.FAST || _manager.getGame() == null) { return; } @@ -95,7 +95,7 @@ public class AFKManager extends MiniClientPlugin if (location.getWorld().equals(data.Last.getWorld())) { - if (UtilMath.offsetSquared(location, data.Last) > 1) + if (UtilMath.offsetSquared(location, data.Last) > 0.1) { data.LastMovement = System.currentTimeMillis(); data.Informed = false;