From 23d4ade1404eca1fb3f62833335955393c2116c2 Mon Sep 17 00:00:00 2001 From: GunshipPenguin <167rhys@gmail.com> Date: Wed, 25 Mar 2015 19:38:08 -0700 Subject: [PATCH] Set MAX_INACTIVE_TIME back to 300, remove debugging code --- init.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/init.lua b/init.lua index 4d32b3f..04fa94d 100644 --- a/init.lua +++ b/init.lua @@ -7,7 +7,7 @@ to this software to the public domain worldwide. This software is distributed without any warranty. ]] -local MAX_INACTIVE_TIME = 20 +local MAX_INACTIVE_TIME = 300 local CHECK_INTERVAL = 1 local WARN_TIME = 20 @@ -45,9 +45,6 @@ minetest.register_globalstep(function(dtime) --Kick player if he/she has been inactive for longer than MAX_INACTIVE_TIME seconds if players[playerName]["lastAction"] + MAX_INACTIVE_TIME < currGameTime then - print(dump(players[playerName]["lastAction"])) - print(dump(currGameTime)) - print(dump(MAX_INACTIVE_TIME)) minetest.kick_player(playerName, "Kicked for inactivity") end